Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchemaDecoder ¶
Decoder struct which holds schema for the expected payload. SchemaDecoder compares paylod before decoding with the schema.
func NewSchemaDecoder ¶
func NewSchemaDecoder[T any](v T) *SchemaDecoder[T]
Creates new schema decoder.
func (*SchemaDecoder[T]) Decode ¶
func (self *SchemaDecoder[T]) Decode(raw []byte) *T
Decodes payload with schema comparasing
Click to show internal directories.
Click to hide internal directories.