scheme

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Scheme)

Option describes a functional configuration option for a Scheme value

func From

func From(schemes ...*Scheme) Option

From can initialize a new Scheme value from one or more existing Scheme values

type Scheme

type Scheme struct {
	// contains filtered or unexported fields
}

Scheme implements a protobuf type registry that can be used to initialize dynamic messages by name

func New

func New(opts ...Option) *Scheme

New initializes a new Scheme value. A given Scheme value can include multiple service type registrations.

func (*Scheme) Merge

func (s *Scheme) Merge(schemes ...*Scheme)

Merge can be used to merge multiple schemes into one

func (*Scheme) New

New initializes a new proto message of the given type

func (*Scheme) RegisterType

func (s *Scheme) RegisterType(desc protoreflect.MessageDescriptor)

RegisterType registers the specified message with the current Scheme

Jump to

Keyboard shortcuts

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