acm

package
v0.0.0-...-ab98a91 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GbkToUtf8

func GbkToUtf8(s []byte) ([]byte, error)

func GbkToUtf8Reader

func GbkToUtf8Reader(s io.Reader) io.Reader

return utf8

func Utf8ToGbk

func Utf8ToGbk(s []byte) ([]byte, error)

func Utf8ToGbkReader

func Utf8ToGbkReader(s io.Reader) io.Reader

return gbk

Types

type Client

type Client struct {
	AccessKey     string
	SecretKey     string
	EndPoint      string
	NameSpace     string
	TimeOut       int
	LocalDataPath string

	HttpClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options ...func(c *Client)) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(dateId, group string) (string, error)

func (*Client) GetAllConfigs

func (c *Client) GetAllConfigs(pageNo, pageSize int) (string, error)

func (*Client) GetConfig

func (c *Client) GetConfig(dataId, group string) (string, error)

func (*Client) GetServers

func (c *Client) GetServers() map[int]string

func (*Client) Publish

func (c *Client) Publish(dataId, group, content string) (string, error)

func (*Client) Subscribe

func (c *Client) Subscribe(dataId, group, contentMd5 string) (string, error)

Jump to

Keyboard shortcuts

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