protocols

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoVerifierFunction = errors.Base("no verifier function")
)

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	Name      string
	Selectors []string
}

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Register

func (r *Registry) Register(proto *Protocol)

func (*Registry) RegisterWithVerifier

func (r *Registry) RegisterWithVerifier(proto *Protocol, verifier Verifier)

func (*Registry) Validate

func (r *Registry) Validate(name string, rbl hasMethodsIntrospector) bool

func (*Registry) Verify

func (r *Registry) Verify(name string, obj selector.Introspectable) error

type Verifier

type Verifier func(selector.Introspectable) error

Jump to

Keyboard shortcuts

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