Documentation ¶
Index ¶
- type ClientConfig
- type ControlClient
- type ControlClientData
- type ControlClientResult
- type ControlClients
- type ControlCommonResult
- type ControlLoginResult
- type ControlMachineAuthResult
- type ControlPaginate
- type ControlUserDetail
- type MetaData
- type NextServer
- type Resource
- type Resources
- type Server
- type ServerInfo
- type ServerType
- type StatusText
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { Server Server `json:"server"` Target Target `json:"target"` CaPem string `json:"ca_pem"` CertPem string `json:"cert_pem"` KeyPem string `json:"key_pem"` }
func ParseClientConfig ¶
func ParseClientConfig(attrs map[string]interface{}) (*ClientConfig, error)
func (*ClientConfig) LoadServerTarget ¶
func (a *ClientConfig) LoadServerTarget(data []byte) (*ClientConfig, error)
func (*ClientConfig) String ¶
func (a *ClientConfig) String() string
type ControlClient ¶
type ControlClient struct { PeerId string `json:"peer_id"` Uuid string `json:"uuid"` UserUuid string `json:"user_uuid"` Name string `json:"name"` ClientCid string `json:"client_cid"` }
ControlClient Controller Client
func (*ControlClient) ToClientOrder ¶
func (a *ControlClient) ToClientOrder(ctx context.Context, key []byte) (*ClientConfig, error)
ToClientOrder
type ControlClientData ¶
type ControlClientData struct { List ControlClients `json:"list"` Paginate ControlPaginate `json:"paginate"` }
ControlClientData
type ControlClientResult ¶
type ControlClientResult struct { ControlCommonResult Data ControlClientData }
ControlClientResult Client list
type ControlClients ¶
type ControlClients []*ControlClient
type ControlCommonResult ¶
ControlCommonResult
type ControlLoginResult ¶
type ControlLoginResult struct { ControlCommonResult Data string `json:"data"` }
ControlLoginResult Device login
type ControlMachineAuthResult ¶
type ControlMachineAuthResult struct { ControlCommonResult Data string `json:"data"` }
func (*ControlMachineAuthResult) GetCode ¶
func (a *ControlMachineAuthResult) GetCode() string
GetCode
type ControlPaginate ¶
type ControlPaginate struct { Total int `json:"total"` Current int `json:"current"` PageSize int `json:"pageSize"` }
ControlPaginate
type ControlUserDetail ¶
ControlUserDetail Login user information
type Resource ¶
type Resources ¶
type Resources []*Resource
func (Resources) VerifyResources ¶
Verify that the access resource exists
type ServerInfo ¶
type ServerInfo struct { PeerAddress string `json:"peer_address"` PeerId string `json:"peer_id"` Addr string `json:"addr"` Port int `json:"port"` MetaData MetaData `json:"meta_data"` GasPrice int `json:"price"` Type ServerType `json:"type"` }
func (*ServerInfo) String ¶
func (a *ServerInfo) String() string
type StatusText ¶
type StatusText string
StatusText Define status text
func (StatusText) String ¶
func (t StatusText) String() string
Click to show internal directories.
Click to hide internal directories.