types

package
v0.0.0-...-c1a9e9f Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TraceLevel log.Level = -5

Variables

This section is empty.

Functions

func UnmarshalRawsUnion2

func UnmarshalRawsUnion2(union Union2[json.RawMessage, yaml.Node], target any) error

Types

type CompileError

type CompileError struct {
	Err   error
	Path  string
	Proto string
}

func (CompileError) Error

func (c CompileError) Error() string

func (CompileError) Is

func (c CompileError) Is(e error) bool

func (CompileError) Unwrap

func (c CompileError) Unwrap() error

type Logger

type Logger struct {
	*log.Logger
}

func NewLogger

func NewLogger(prefix string) *Logger

func (*Logger) Trace

func (l *Logger) Trace(msg interface{}, args ...interface{})

type OrderedMap

type OrderedMap[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func (*OrderedMap[K, V]) Delete

func (o *OrderedMap[K, V]) Delete(key K) bool

func (OrderedMap[K, V]) Entries

func (o OrderedMap[K, V]) Entries() []lo.Entry[K, V]

func (OrderedMap[K, V]) Get

func (o OrderedMap[K, V]) Get(key K) (V, bool)

func (OrderedMap[K, V]) GetOr

func (o OrderedMap[K, V]) GetOr(key K, defaultValue V) V

func (OrderedMap[K, V]) Keys

func (o OrderedMap[K, V]) Keys() []K

func (OrderedMap[K, V]) Len

func (o OrderedMap[K, V]) Len() int

func (OrderedMap[K, V]) OrderedMap

func (o OrderedMap[K, V]) OrderedMap()

func (*OrderedMap[K, V]) Set

func (o *OrderedMap[K, V]) Set(key K, value V)

func (*OrderedMap[K, V]) UnmarshalJSON

func (o *OrderedMap[K, V]) UnmarshalJSON(bytes []byte) error

func (*OrderedMap[K, V]) UnmarshalYAML

func (o *OrderedMap[K, V]) UnmarshalYAML(value *yaml.Node) error

type SimpleStack

type SimpleStack[T any] struct {
	// contains filtered or unexported fields
}

func (*SimpleStack[T]) Items

func (s *SimpleStack[T]) Items() []T

func (*SimpleStack[T]) Pop

func (s *SimpleStack[T]) Pop() T

func (*SimpleStack[T]) Push

func (s *SimpleStack[T]) Push(v T)

func (*SimpleStack[T]) ReplaceTop

func (s *SimpleStack[T]) ReplaceTop(v T)

func (*SimpleStack[T]) Top

func (s *SimpleStack[T]) Top() T

type Union2

type Union2[T0, T1 any] struct {
	V0       T0
	V1       T1
	Selector uint8
}

func ToUnion2

func ToUnion2[T0, T1 any](v any) *Union2[T0, T1]

func (*Union2[T0, T1]) CurrentValue

func (ju *Union2[T0, T1]) CurrentValue() any

func (*Union2[T0, T1]) MarshalJSON

func (ju *Union2[T0, T1]) MarshalJSON() ([]byte, error)

func (*Union2[T0, T1]) MarshalYAML

func (ju *Union2[T0, T1]) MarshalYAML() (any, error)

func (*Union2[T0, T1]) UnmarshalJSON

func (ju *Union2[T0, T1]) UnmarshalJSON(bytes []byte) error

func (*Union2[T0, T1]) UnmarshalYAML

func (ju *Union2[T0, T1]) UnmarshalYAML(value *yaml.Node) error

type Union3

type Union3[T0, T1, T2 any] struct {
	V0       T0
	V1       T1
	V2       T2
	Selector uint8
}

func (*Union3[T0, T1, T2]) CurrentValue

func (ju *Union3[T0, T1, T2]) CurrentValue() any

func (*Union3[T0, T1, T2]) MarshalJSON

func (ju *Union3[T0, T1, T2]) MarshalJSON() ([]byte, error)

func (*Union3[T0, T1, T2]) MarshalYAML

func (ju *Union3[T0, T1, T2]) MarshalYAML() (any, error)

func (*Union3[T0, T1, T2]) UnmarshalJSON

func (ju *Union3[T0, T1, T2]) UnmarshalJSON(bytes []byte) error

func (*Union3[T0, T1, T2]) UnmarshalYAML

func (ju *Union3[T0, T1, T2]) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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