rest

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MissingInterceptions        = errors.New("missing interceptions")
	MissingEndpointInterception = errors.New("missing endpoint interception")
	MissingChildrenMap          = errors.New("missing children map")
	FailedToTraverse            = errors.New("failed to traverse")
)

Functions

This section is empty.

Types

type Map added in v0.2.4

type Map struct {
	Interceptions *map[string]map[rest.Method]grpc.Method
	ChildrenMaps  *map[string]*Map
}

Map struct for the REST endpoints

func NewMap added in v0.2.4

func NewMap(interceptions *map[string]map[rest.Method]grpc.Method, childrenMaps *map[string]*Map) *Map

NewMap creates a new REST map

func (*Map) Traverse added in v0.2.4

func (m *Map) Traverse(relativeURI string, restMethod rest.Method) (*grpc.Method, error)

Traverse traverses the REST map

type Mapper added in v0.2.4

type Mapper interface {
	Traverse(relativeURI string, restMethod rest.Method) (*grpc.Method, error)
}

Mapper is the interface for the REST map

Jump to

Keyboard shortcuts

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