Documentation ¶
Overview ¶
Package resolver resolves a http request to an endpoint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // e.g greeter Name string // HTTP Host e.g example.com Host string // HTTP Methods e.g GET, POST Method string // HTTP Path e.g /greeter. Path string }
Endpoint is the endpoint for a http request
type Option ¶ added in v0.5.0
type Option func(o *Options)
func WithHandler ¶ added in v0.5.0
WithHandler sets the handler being used
func WithNamespace ¶ added in v0.5.0
WithNamespace sets the namespace being used
type Options ¶ added in v0.5.0
func NewOptions ¶ added in v0.5.0
NewOptions returns new initialised options
Directories ¶
Path | Synopsis |
---|---|
Package grpc resolves a grpc service like /greeter.Say/Hello to greeter service
|
Package grpc resolves a grpc service like /greeter.Say/Hello to greeter service |
Package host resolves using http host
|
Package host resolves using http host |
Package micro provides a micro rpc resolver which prefixes a namespace
|
Package micro provides a micro rpc resolver which prefixes a namespace |
Package path resolves using http path
|
Package path resolves using http path |
Package vpath resolves using http path and recognised versioned urls
|
Package vpath resolves using http path and recognised versioned urls |
Click to show internal directories.
Click to hide internal directories.