config

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointDefault       = "http://120.48.16.137:8360"
	UserAgentDefault      = "xasset-sdk-go"
	ConnectTimeoutMsDef   = 1000
	ReadWriteTimeoutMsDef = 3000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type XassetCliConfig

type XassetCliConfig struct {
	Endpoint           string
	UserAgent          string
	Credentials        *auth.Credentials
	SignOption         *auth.SignOptions
	ConnectTimeoutMs   int
	ReadWriteTimeoutMs int
}

func NewXassetCliConf

func NewXassetCliConf() *XassetCliConfig

func (*XassetCliConfig) IsVaild

func (t *XassetCliConfig) IsVaild() bool

func (*XassetCliConfig) SetCredentials

func (t *XassetCliConfig) SetCredentials(appId int64, ak, sk string)

func (*XassetCliConfig) String

func (t *XassetCliConfig) String() string

Jump to

Keyboard shortcuts

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