Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrNoSegments common.ErrMsg = "no segments" ErrMissingExtn common.ErrMsg = "missing HiddenPathSeg extension" ErrWrongSegType common.ErrMsg = "segment must be an up- or down-segment" ErrUnknownGroup common.ErrMsg = "group not known to HPS" ErrNotRegistry common.ErrMsg = "HPS is not a Registry of this group" ErrNotWriter common.ErrMsg = "peer is not a writer of this group" ErrNotReader common.ErrMsg = "peer is not a reader of this group" )
Variables ¶
This section is empty.
Functions ¶
func NewSegRegHandler ¶
func NewSegRegHandler(validator Validator, segHandler seghandler.Handler) infra.Handler
NewSegRegHandler returns a hidden path segment registration handler
Types ¶
type DefaultValidator ¶
type DefaultValidator struct {
// contains filtered or unexported fields
}
DefaultValidator validates hidden path registrations based on hidden path group configurations
func NewDefaultValidator ¶
func NewDefaultValidator(localIA addr.IA, groups map[hiddenpath.GroupId]*hiddenpath.Group) *DefaultValidator
NewDefaultValidator creates a new DefaultValidator
Directories ¶
Path | Synopsis |
---|---|
Package mock_registration is a generated GoMock package.
|
Package mock_registration is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.