Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGotdVersion ¶
func GetGotdVersion() string
GetGotdVersion optimistically gets current gotd version.
Does not handle replace directives.
Types ¶
type Handler ¶
type Handler struct { Middleware *oteltg.Middleware // contains filtered or unexported fields }
Handler implements stats request handler.
func NewHandler ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware( next dispatch.MessageHandler, d *downloader.Downloader, metrics *app.Metrics, opts MiddlewareOptions, ) Middleware
NewMiddleware creates new metrics middleware
func (Middleware) OnMessage ¶
func (m Middleware) OnMessage(ctx context.Context, e dispatch.MessageEvent) error
OnMessage implements dispatch.MessageHandler.
Click to show internal directories.
Click to hide internal directories.