proton

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 16 Imported by: 37

README

proton

Serialization library for go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(filePath string, msgs ...any) error

Generate generates proton methods for provided types and stores them in a file.

Types

type Marshallable added in v0.4.1

type Marshallable interface {
	Marshal(buf []byte) uint64
}

Marshallable is the interface for marshallable messages.

type Marshaller added in v0.4.1

type Marshaller interface {
	Marshal(msg Marshallable, buf []byte) (uint64, uint64, error)
	Unmarshal(id uint64, buf []byte) (any, uint64, error)
}

Marshaller is the interface implemented by marshallers.

type Message added in v0.4.0

type Message interface {
	Marshallable

	Size() uint64
	Unmarshal(b []byte) uint64
}

Message is the interface implemented by messages.

Jump to

Keyboard shortcuts

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