connection

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvName = "BIFROEST_CONNECTION_ID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Id() Id
	Remote() net.Remote
	Logger() log.Logger
}

type Id

type Id uuid.UUID

func MustNewId

func MustNewId() Id

func NewId

func NewId() (Id, error)

func (*Id) DecodeMsgPack

func (this *Id) DecodeMsgPack(dec codec.MsgPackDecoder) error

func (*Id) DecodeMsgpack

func (this *Id) DecodeMsgpack(dec *msgpack.Decoder) error

func (Id) EncodeMsgPack

func (this Id) EncodeMsgPack(enc codec.MsgPackEncoder) error

func (Id) EncodeMsgpack

func (this Id) EncodeMsgpack(enc *msgpack.Encoder) error

func (Id) IsEqualTo

func (this Id) IsEqualTo(other any) bool

func (Id) IsZero

func (this Id) IsZero() bool

func (Id) MarshalBinary

func (this Id) MarshalBinary() (b []byte, err error)

func (Id) MarshalText

func (this Id) MarshalText() (text []byte, err error)

func (*Id) Set

func (this *Id) Set(text string) error

func (Id) String

func (this Id) String() string

func (*Id) UnmarshalBinary

func (this *Id) UnmarshalBinary(b []byte) error

func (*Id) UnmarshalText

func (this *Id) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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