erpc

package
v0.0.0-...-0b8d6eb Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtoName    = "EDPCer"
	ProtoVersion = 0
)

Variables

This section is empty.

Functions

func CBORTags

func CBORTags() (tags cbor.TagSet, err error)

Types

type CommanderEvent

type CommanderEvent struct {
	EDEvent
	Cmdr string
}

type DockedEvent

type DockedEvent struct {
	EDEvent
	Addr   uint64 `cbor:",omitempty"`
	System string
	Port   string
}

type EDEvent

type EDEvent struct {
	RequestHeader
	TEvt int64 `cbor:"4,keyasint"`
}

func (*EDEvent) EvtHeader

func (e *EDEvent) EvtHeader() *EDEvent

type Eventer

type Eventer interface {
	Requester
	EvtHeader() *EDEvent
}

type RequestHeader

type RequestHeader struct {
	ProtoVer    int    `cbor:"1,keyasint"`
	AccessToken string `cbor:"2,keyasint"`
	FID         string `cbor:"3,keyasint"`
}

func (*RequestHeader) RqHeader

func (h *RequestHeader) RqHeader() *RequestHeader

type Requester

type Requester interface {
	RqHeader() *RequestHeader
}

type Responder

type Responder interface {
	RspHeader() *ResponseHeader
}

type ResponseHeader

type ResponseHeader struct {
	ProtoVer int    `cbor:"1,keyasint"`
	Redirect string `cbor:"2,keyasint,omitempty"`
}

func (*ResponseHeader) RspHeader

func (h *ResponseHeader) RspHeader() *ResponseHeader

Jump to

Keyboard shortcuts

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