Documentation
¶
Index ¶
- Constants
- type Blackbox
- func (b *Blackbox) Decoder() kithttp.DecodeRequestFunc
- func (b *Blackbox) Encoder() kithttp.EncodeResponseFunc
- func (b *Blackbox) Endpoint() kitendpoint.Endpoint
- func (b *Blackbox) Method() string
- func (b *Blackbox) Middlewares() []kitendpoint.Middleware
- func (b *Blackbox) Name() string
- func (b *Blackbox) Path() string
- type BlackboxConfig
Constants ¶
View Source
const ( // BlackboxMethod is the HTTP method this endpoint is register for. BlackboxMethod = "GET" // BlackboxName identifies the endpoint. It is aligned to the package path. BlackboxName = "blackbox" // BlackboxPath is the HTTP request path this endpoint is registered for. BlackboxPath = "/blackbox" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blackbox ¶
type Blackbox struct {
}
func NewBlackbox ¶
func NewBlackbox(config BlackboxConfig) (*Blackbox, error)
func (*Blackbox) Decoder ¶
func (b *Blackbox) Decoder() kithttp.DecodeRequestFunc
func (*Blackbox) Encoder ¶
func (b *Blackbox) Encoder() kithttp.EncodeResponseFunc
func (*Blackbox) Endpoint ¶
func (b *Blackbox) Endpoint() kitendpoint.Endpoint
func (*Blackbox) Middlewares ¶
func (b *Blackbox) Middlewares() []kitendpoint.Middleware
type BlackboxConfig ¶
type BlackboxConfig struct {
}
Click to show internal directories.
Click to hide internal directories.