Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDP ¶
type IDP struct {
// contains filtered or unexported fields
}
IDP defines implements the business logic for Service.
func (IDP) Index ¶
func (idp IDP) Index() http.HandlerFunc
Index renders the static html with templated variables.
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func Middleware ¶
Middleware provides a function to set the middleware option.
func TraceProvider ¶
func TraceProvider(val trace.TracerProvider) Option
TraceProvider provides a function to set the trace provider option.
type Options ¶
type Options struct {
Logger log.Logger
Config *config.Config
Middleware []func(http.Handler) http.Handler
TraceProvider trace.TracerProvider
}
Options defines the available options for this package.
type Service ¶
type Service interface {
ServeHTTP(http.ResponseWriter, *http.Request)
}
Service defines the service handlers.
func NewInstrument ¶
NewInstrument returns a service that instruments metrics.
func NewLoggingHandler ¶
NewLogging returns a service that logs messages.
func NewService ¶
NewService returns a service implementation for Service.
Click to show internal directories.
Click to hide internal directories.