Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + type Codec struct + func (c *Codec) Decode(data []byte) (*DecodeResult, error) + func (c *Codec) Encode(packet map[string]any) ([]byte, error) + type DecodeResult = codec.DecodeResult + type Library struct + func NewLibrary() (*Library, error) + func (l *Library) AllNames() []string + func (l *Library) CreateCodec(pslText string) (*Codec, error) + func (l *Library) Decode(protocolName string, data []byte) (*DecodeResult, error) + func (l *Library) Encode(protocolName string, packet map[string]any) ([]byte, error) + func (l *Library) LoadPSL(filePath string) error + func (l *Library) Message(name string) *schema.MessageSchema + func (l *Library) Meta(name string) *ProtocolMeta + func (l *Library) RegisterChecksum(name string, fn checksum.ChecksumFunc) + func (l *Library) RegisterFormat(name string, formatter format.DisplayFormatter) + func (l *Library) Registry() *registry.ProtocolRegistry + type ProtocolMeta struct + DependsOn []string + Description map[string]string + Fields map[string]map[string]string + Layer string + RFC string + SeeAlso []string + Status string + Title map[string]string + Type string + URL string