protocol

package
v0.0.0-...-da17cbf Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpectedStruct = errors.New("expected struct")
View Source
var ErrUnmatchingType = errors.New("field type does not match wire value")

Functions

func Marshal

func Marshal(in any, opts ...marshalConfigOption) (*commonv1.ModuleSpec, error)

func Unmarshal

func Unmarshal(input *commonv1.ModuleSpec, into any, opts ...unmarshalConfigOption) error

Types

type Float

type Float interface {
	~float32 | ~float64
}

type Integer

type Integer interface {
	Signed | Unsigned
}

type Numeric

type Numeric interface {
	Integer | Float
}

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type SpecUnmarshaler

type SpecUnmarshaler interface {
	UnmarshalModuleSpec(val *commonv1.ModuleSpec) error
}

type SpecValueUnmarshaler

type SpecValueUnmarshaler interface {
	UnmarshalSpecValue(val *commonv1.ModuleSpec_Value) error
}

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

type WithTagName

type WithTagName string

Jump to

Keyboard shortcuts

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