base

package
v0.0.0-...-58bd830 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const METHOD_NAME = "init"

Variables

This section is empty.

Functions

This section is empty.

Types

type Init

type Init struct {
	Architecture string   `msgpack:"arch"`
	OS           string   `msgpack:"os"`
	Capabilities []string `msgpack:"capabilities"`
	// contains filtered or unexported fields
}

TODO: Remove field names (we use array-style msgpack)

func DecodeInit

func DecodeInit(decoder *msgpack.Decoder) (*Init, error)

func NewInit

func NewInit() *Init

func NewInitWithCapabilities

func NewInitWithCapabilities(capabilities []string) *Init

func (*Init) GenMessage

func (i *Init) GenMessage(method string) *models.Message

func (*Init) String

func (p *Init) String() string

type InitModules

type InitModules struct {
	EnabledModules []string `msgpack:"enabledModules"`
	// contains filtered or unexported fields
}

func NewInitModules

func NewInitModules(enabledModules []string) *InitModules

type RPing

type RPing struct {
	Init
	EnabledCapabilities []string
}

func NewRPing

func NewRPing(enabledCapabilities []string) *RPing

Jump to

Keyboard shortcuts

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