sub

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSPReserved

func ParseSPReserved(sp *Packets, op *packet.OpaqueSubpacket, item *items.Item) error

ParseSPReserved parsing "Reserved" sub packet

func StringFlagInfo

func StringFlagInfo(flag byte, name string) *items.Item

StringFlagInfo returns Item instance for flag info.

Types

type Functions

type Functions map[int]ParseSubpacket

Functions is type of function list.

func (Functions) Get

func (fs Functions) Get(i int, def ParseSubpacket) ParseSubpacket

Get returns message.

type PacketType

type PacketType byte

PacketType is sub packet type

func (PacketType) Get

func (s PacketType) Get() *items.Item

Get returns Item instance

func (PacketType) String

func (s PacketType) String() string

type Packets

type Packets struct {
	*options.Options
	Title            string
	OpaqueSubpackets []*packet.OpaqueSubpacket
}

Packets - Sub Packets

func New

func New(opt *options.Options, title string, body []byte) (*Packets, error)

New returns new Packets instance

type ParseSubpacket

type ParseSubpacket func(*Packets, *packet.OpaqueSubpacket, *items.Item) error

ParseSubpacket is function value of parsing sub-packet

Jump to

Keyboard shortcuts

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