mgmt

package
v0.0.0-...-c8fc2fc Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	Ctrl      *sciond.HostInfo
	EncapPort uint16
}

func NewAddr

func NewAddr(host addr.HostAddr, ctrlPort, encapPort uint16) *Addr

func (*Addr) ProtoId

func (a *Addr) ProtoId() proto.ProtoIdType

func (*Addr) String

func (a *Addr) String() string

func (*Addr) Write

func (a *Addr) Write(b common.RawBytes) (int, error)

type MsgIdType

type MsgIdType uint64

func (MsgIdType) String

func (m MsgIdType) String() string

type Pld

type Pld struct {
	Id MsgIdType
	// contains filtered or unexported fields
}

func NewPld

func NewPld(id MsgIdType, u proto.Cerealizable) (*Pld, error)

NewPld creates a new SIG ctrl payload, containing the supplied Cerealizable instance.

func (*Pld) ProtoId

func (p *Pld) ProtoId() proto.ProtoIdType

func (*Pld) String

func (p *Pld) String() string

func (*Pld) Union

func (p *Pld) Union() (proto.Cerealizable, error)

type PollRep

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

func NewPollRep

func NewPollRep(a *Addr, s SessionType) *PollRep

func (PollRep) ProtoId

func (p PollRep) ProtoId() proto.ProtoIdType

func (PollRep) String

func (p PollRep) String() string

func (PollRep) Write

func (p PollRep) Write(b common.RawBytes) (int, error)

type PollReq

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

func NewPollReq

func NewPollReq(a *Addr, s SessionType) *PollReq

func (PollReq) ProtoId

func (p PollReq) ProtoId() proto.ProtoIdType

func (PollReq) String

func (p PollReq) String() string

func (PollReq) Write

func (p PollReq) Write(b common.RawBytes) (int, error)

type SessionType

type SessionType uint8

func (SessionType) String

func (st SessionType) String() string

Jump to

Keyboard shortcuts

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