structs

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command string

Command defines the message type.

const (
	MsgAtt            Command = "att"
	MsgAttRsp         Command = "attRsp"
	MsgAttCmp         Command = "attCmp"
	MsgAttPrp         Command = "attPrp"
	MsgAttPrpRsp      Command = "attPrpRsp"
	MsgAttPrpCmp      Command = "attPrpCmp"
	MsgCon            Command = "con"
	MsgConRsp         Command = "conRsp"
	MsgConCmp         Command = "conCmp"
	MsgDet            Command = "det"
	MsgDetRsp         Command = "detRsp"
	MsgDetCmp         Command = "detCmp"
	MsgDetPrp         Command = "detPrp"
	MsgDetPrpRsp      Command = "detPrpRsp"
	MsgDetPrpCmp      Command = "detPrpCmp"
	MsgDlDataQue      Command = "dlDataQue"
	MsgDlDataQueRsp   Command = "dlDataQueRsp"
	MsgDlDataQueCmp   Command = "dlDataQueCmp"
	MsgDlDataRes      Command = "dlDataRes"
	MsgDlDataResRsp   Command = "dlDataResRsp"
	MsgDlDataResCmp   Command = "dlDataResCmp"
	MsgDlDataRev      Command = "dlDataRev"
	MsgDlDataRevRsp   Command = "dlDataRevRsp"
	MsgDlDataRevCmp   Command = "dlDataRevCmp"
	MsgDlRxStat       Command = "dlRxStat"
	MsgDlRxStatRsp    Command = "dlRxStatRsp"
	MsgDlRxStatCmp    Command = "dlRxStatCmp"
	MsgDlRxStatQry    Command = "dlRxStatQry"
	MsgDlRxStatQryRsp Command = "dlRxStatQryRsp"
	MsgDlRxStatQryCmp Command = "dlRxStatQryCmp"
	MsgPing           Command = "ping"
	MsgPingRsp        Command = "pingRsp"
	MsgPingCmp        Command = "pingCmp"
	MsgStatus         Command = "status"
	MsgStatusRsp      Command = "statusRsp"
	MsgStatusCmp      Command = "statusCmp"
	MsgUlData         Command = "ulData"
	MsgUlDataRsp      Command = "ulDataRsp"
	MsgUlDataCmp      Command = "ulDataCmp"
	MsgError          Command = "error"
	MsgErrorAck       Command = "errorAck"
	// Variable MAC
	MsgVmActivate      Command = "vm.activate"
	MsgVmActivateRsp   Command = "vm.activateRsp"
	MsgVmActivateCmp   Command = "vm.activateCmp"
	MsgVmDeactivate    Command = "vm.deactivate"
	MsgVmDeactivateRsp Command = "vm.deactivateRsp"
	MsgVmDeactivateCmp Command = "vm.deactivateCmp"
	MsgVmStatus        Command = "vm.status"
	MsgVmStatusRsp     Command = "vm.statusRsp"
	MsgVmStatusCmp     Command = "vm.statusCmp"
	MsgVmUlData        Command = "vm.ulData"
	MsgVmUlDataRsp     Command = "vm.ulDataRsp"
	MsgVmUlDataCmp     Command = "vm.ulDataCmp"
	// Acknowledgement for propagate messages
	MsgPrpAck Command = "prpAck"
)

Message types.

const (
	ServerMsgAttPrp         Command = MsgAttPrp
	ServerMsgAttPrpCmp      Command = MsgAttPrpCmp
	ServerMsgDetPrp         Command = MsgDetPrp
	ServerMsgDetPrpCmp      Command = MsgDetPrpCmp
	ServerMsgDlDataQue      Command = MsgDlDataQue
	ServerMsgDlDataQueCmp   Command = MsgDlDataQueCmp
	ServerMsgDlDataRev      Command = MsgDlDataRev
	ServerMsgDlDataRevCmp   Command = MsgDlDataRevCmp
	ServerMsgDlRxStatQry    Command = MsgDlRxStatQry
	ServerMsgDlRxStatQryCmp Command = MsgDlRxStatQryCmp
	ServerMsgStatus         Command = MsgStatus
	ServerMsgStatusCmp      Command = MsgStatusCmp
	ServerMsgAttRsp         Command = MsgAttRsp
	ServerMsgDetRsp         Command = MsgDetRsp
	ServerMsgConRsp         Command = MsgConRsp
	ServerMsgDlDataResRsp   Command = MsgDlDataResRsp
	ServerMsgUlDataRsp      Command = MsgUlDataRsp
	ServerMsgDlRxStatRsp    Command = MsgDlRxStatRsp
	ServerMsgError          Command = MsgError
	ServerMsgErrorAck       Command = MsgErrorAck
	ServerMsgPing           Command = MsgPing
	ServerMsgPingRsp        Command = MsgPingRsp
	ServerMsgPingCmp        Command = MsgPingCmp
	// Variable MAC
	ServerMsgVmActivate      Command = MsgVmActivate
	ServerMsgVmActivateCmp   Command = MsgVmActivateCmp
	ServerMsgVmDeactivate    Command = MsgVmDeactivate
	ServerMsgVmDeactivateCmp Command = MsgVmDeactivateCmp
	ServerMsgVmStatus        Command = MsgVmStatus
	ServerMsgVmStatusCmp     Command = MsgVmStatusCmp
	ServerMsgVmUlDataRsp     Command = MsgVmUlDataRsp
)

A message send by the server

const (
	ClientMsgAtt            Command = MsgAtt
	ClientMsgAttCmp         Command = MsgAttCmp
	ClientMsgAttPrpRsp      Command = MsgAttPrpRsp
	ClientMsgCon            Command = MsgCon
	ClientMsgConCmp         Command = MsgConCmp
	ClientMsgDet            Command = MsgDet
	ClientMsgDetCmp         Command = MsgDetCmp
	ClientMsgDetPrpRsp      Command = MsgDetPrpRsp
	ClientMsgDlDataQueRsp   Command = MsgDlDataQueRsp
	ClientMsgDlDataRes      Command = MsgDlDataRes
	ClientMsgDlDataResCmp   Command = MsgDlDataResCmp
	ClientMsgDlDataRevRsp   Command = MsgDlDataRevRsp
	ClientMsgDlRxStat       Command = MsgDlRxStat
	ClientMsgDlRxStatCmp    Command = MsgDlRxStatCmp
	ClientMsgDlRxStatQryRsp Command = MsgDlRxStatQryRsp
	ClientMsgStatusRsp      Command = MsgStatusRsp
	ClientMsgUlData         Command = MsgUlData
	ClientMsgUlDataCmp      Command = MsgUlDataCmp
	ClientMsgError          Command = MsgError
	ClientMsgErrorAck       Command = MsgErrorAck
	ClientMsgPing           Command = MsgPing
	ClientMsgPingRsp        Command = MsgPingRsp
	ClientMsgPingCmp        Command = MsgPingCmp
	// Variable MAC
	ClientMsgVmActivateRsp   Command = MsgVmActivateRsp
	ClientMsgVmDeactivateRsp Command = MsgVmDeactivateRsp
	ClientMsgVmStatusRsp     Command = MsgVmStatusRsp
	ClientMsgVmUlData        Command = MsgVmUlData
	ClientMsgVmUlDataCmp     Command = MsgVmUlDataCmp
)

A message send by the client

type CommandHeader

type CommandHeader struct {
	Command Command `msg:"command" json:"command"`
	// ID of the operation
	OpId int64 `msg:"opId" json:"opId"`
}

func (*CommandHeader) GetCommand

func (m *CommandHeader) GetCommand() Command

func (*CommandHeader) GetOpId

func (m *CommandHeader) GetOpId() int64

type SessionUuid

type SessionUuid [16]int8

BSSCI encodes as 16 signed ints

func NewSessionUuid

func NewSessionUuid(uuid uuid.UUID) (s SessionUuid)

func (SessionUuid) MarshalText

func (s SessionUuid) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (SessionUuid) String

func (s SessionUuid) String() string

func (SessionUuid) ToUuid

func (s SessionUuid) ToUuid() (u uuid.UUID)

func (*SessionUuid) UnmarshalText

func (s *SessionUuid) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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