opaque

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package opaque implements the opaque packet header.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opaque

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

An Opaque represents payload that cannot be parsed by Lucius. Note opaque payload cannot be added or removed.

func (*Opaque) Field

func (op *Opaque) Field(id fwdpacket.FieldID) ([]byte, error)

Field returns a slice of bytes as identified by id.

func (*Opaque) Header

func (op *Opaque) Header() []byte

Header returns the opaque frame.

func (Opaque) ID

ID returns the protocol header ID.

func (Opaque) Modify

func (Opaque) Modify(fwdpb.PacketHeaderId) error

Modify returns an error as the opaque header's type cannot be modified.

func (Opaque) Rebuild

func (Opaque) Rebuild() error

Rebuild does not perform any updates.

func (Opaque) Remove

func (Opaque) Remove(fwdpb.PacketHeaderId) error

Remove returns an error as the opaque header cannot be removed.

func (Opaque) Trailer

func (Opaque) Trailer() []byte

Trailer returns the no trailing bytes.

func (*Opaque) UpdateField

func (op *Opaque) UpdateField(id fwdpacket.FieldID, oper int, arg []byte) (bool, error)

UpdateField updates a slice of bytes identified by id.

Jump to

Keyboard shortcuts

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