agent

package
Version: v0.0.0-...-a3b6696 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

nolint:maligned

func NewAgent

func NewAgent(appCtx context.Context, logger log.Interface, config *conf.Config) (_ *Agent, err error)

func (*Agent) GetClient

func (b *Agent) GetClient() client.Interface

func (*Agent) HandleCmd

func (b *Agent) HandleCmd(cmdBytes []byte)

HandleCmd may be called from any goroutine, no calling sequence guaranteed

func (*Agent) PostData

func (b *Agent) PostData(sid uint64, kind aranyagopb.MsgType, seq uint64, completed bool, data []byte) (uint64, error)

func (*Agent) PostMsg

func (b *Agent) PostMsg(sid uint64, kind aranyagopb.MsgType, msg proto.Marshaler) error

func (*Agent) SetClient

func (b *Agent) SetClient(client client.Interface)

Jump to

Keyboard shortcuts

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