cloud

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinFrame added in v1.0.6

type BinFrame struct {
	Header BinFrameHeader
	Data   []byte
}

func UnmarshalBinFrame added in v1.0.6

func UnmarshalBinFrame(frameBytes []byte) (*BinFrame, error)

func (*BinFrame) Marshal added in v1.0.6

func (c *BinFrame) Marshal() ([]byte, error)

type BinFrameHeader added in v1.0.6

type BinFrameHeader struct {
	Src           string `json:"src"`
	Dest          string `json:"dest"`
	Function      string `json:"function"`
	TransactionId string `json:"transaction_id"`
	SessionId     string `json:"session_id"`
}

type BinFrameTask added in v1.0.6

type BinFrameTask struct {
	SessionId string
	Client    *Connection
	Frame     *BinFrame
}

type Connection added in v1.0.6

type Connection struct {
	// contains filtered or unexported fields
}

func NewConnection added in v1.0.6

func NewConnection() *Connection

func (*Connection) AccountInfo added in v1.0.6

func (*Connection) AddNode added in v1.0.6

func (c *Connection) AddNode(name string) (resp nodeinterface.CloudAddNodeResponse, err error)

func (*Connection) Call added in v1.0.6

func (c *Connection) Call(function string, requestText []byte) (response []byte, err error)

func (*Connection) CloseConnection added in v1.0.6

func (c *Connection) CloseConnection()

func (*Connection) Connected added in v1.0.6

func (c *Connection) Connected() bool

func (*Connection) GetSettings added in v1.0.6

func (*Connection) LoadSession added in v1.0.6

func (c *Connection) LoadSession() error

func (*Connection) Login added in v1.0.6

func (c *Connection) Login(userName string, password string)

func (*Connection) Logout added in v1.0.6

func (c *Connection) Logout()

func (*Connection) Nodes added in v1.0.6

func (c *Connection) Nodes() (resp nodeinterface.CloudNodesResponse, err error)

func (*Connection) RemoveNode added in v1.0.6

func (c *Connection) RemoveNode(nodeId string) (resp nodeinterface.CloudRemoveNodeResponse, err error)

func (*Connection) SaveSession added in v1.0.6

func (c *Connection) SaveSession() error

func (*Connection) SendData added in v1.0.6

func (c *Connection) SendData(data *BinFrame) (frameLen int64)

func (*Connection) SessionId added in v1.0.6

func (c *Connection) SessionId() string

func (*Connection) SetCurrentNodeId added in v1.0.6

func (*Connection) SetRequester added in v1.0.6

func (c *Connection) SetRequester(requester common_interfaces.Requester)

func (*Connection) SetSettings added in v1.0.6

func (*Connection) Start added in v1.0.6

func (c *Connection) Start()

func (*Connection) Started added in v1.0.6

func (c *Connection) Started() bool

func (*Connection) Stat added in v1.0.6

func (*Connection) State added in v1.0.6

func (*Connection) Stop added in v1.0.6

func (c *Connection) Stop()

func (*Connection) UpdateNode added in v1.0.6

func (c *Connection) UpdateNode(nodeId string, name string) (resp nodeinterface.CloudUpdateNodeResponse, err error)

func (*Connection) UserName added in v1.0.6

func (c *Connection) UserName() string

type ProxyTask added in v1.0.6

type ProxyTask struct {
	TransactionId string
	Function      string
	RequestText   []byte

	ResponseReceived bool
	ErrorReceived    bool
	ResponseText     []byte
}

type SessionConfig added in v1.0.6

type SessionConfig struct {
	UserName string `json:"user_name"`
	Key      string `json:"key"`
	NodeId   string `json:"node_id"`

	AllowIncomingFunctions []string `json:"allow_incoming_functions"`
}

Jump to

Keyboard shortcuts

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