settingsapi

package
v1.2.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(params GetParams) (*models.ProxiesSettings, error)

Get retrieves the settings for all proxies

func Patch

func Patch(params UpdateParams) (*models.ProxiesSettings, error)

Patch updates only specific settings attributes for all proxies

func Set

func Set(params UpdateParams) (*models.ProxiesSettings, error)

Set sets the settings for all proxies

Types

type GetParams

type GetParams struct {
	*api.API

	Region string
}

GetParams is the set of parameters required for retrieving the settings for all proxies

func (GetParams) Validate

func (params GetParams) Validate() error

Validate parameters for get functions

type UpdateParams

type UpdateParams struct {
	*api.API
	*models.ProxiesSettings

	Region, Version string
}

UpdateParams is the set of parameters required for setting the settings for all proxies

func (UpdateParams) Validate

func (params UpdateParams) Validate() error

Validate parameters for set function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL