Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + func Encapsulate(lib *protocol.Library, layers []struct{ ... }) ([]byte, error) + type Engine struct + func NewEngine(lib *protocol.Library) *Engine + func (e *Engine) AddRule(r Rule) + func (e *Engine) Decode(startProtocol string, data []byte) ([]Layer, error) + type Layer struct + Bytes int + Fields map[string]any + Protocol string + type Rule struct + Field string + Next string + Value any