remote

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRemoteJSON

func GetRemoteJSON(key string, val interface{}) error

func GetRemoteText

func GetRemoteText(key string) (string, error)

func GetRemoteYAML

func GetRemoteYAML(key string, val interface{}) error

func InitRemoteSettingClientWithEnv

func InitRemoteSettingClientWithEnv(cli *RemoteSettingClient)

Types

type RemoteSettingClient

type RemoteSettingClient struct {
	BaseURL string
	AK, SK  string
	Group   string
	// contains filtered or unexported fields
}

RemoteSettingClient is a client to get remote settings from a remote server.

func NewRemoteSettingClient

func NewRemoteSettingClient(baseURL, ak, sk, group string) *RemoteSettingClient

NewRemoteSettingClient creates a new RemoteSettingClient.

func NewRemoteSettingClientWithEnv

func NewRemoteSettingClientWithEnv() *RemoteSettingClient

NewRemoteSettingClientWithEnv creates a new RemoteSettingClient with env.

func (*RemoteSettingClient) Get

func (c *RemoteSettingClient) Get(key string) (string, error)

Get gets the remote settings.

Jump to

Keyboard shortcuts

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