xtv

package
v0.16.13 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMappings

func InitializeMappings() error

func RegisterValidator

func RegisterValidator(id string, validator Validator)

func Validate

func Validate(tx *bbolt.Tx, terminator Terminator, create bool) error

Types

type DefaultValidator

type DefaultValidator struct{}

func (DefaultValidator) Validate

func (d DefaultValidator) Validate(*bbolt.Tx, Terminator, bool) error

type Registry

type Registry interface {
	RegisterBinding(binding, validatorId string)
	RegisterValidator(id string, validator Validator)
	GetValidatorForBinding(binding string) Validator
}

func GetRegistry

func GetRegistry() Registry

type Terminator

type Terminator interface {
	GetId() string
	GetServiceId() string
	GetRouterId() string
	GetBinding() string
	GetAddress() string
	GetIdentity() string
	GetIdentitySecret() []byte
}

type Validator

type Validator interface {
	Validate(tx *bbolt.Tx, terminator Terminator, create bool) error
}

Jump to

Keyboard shortcuts

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