Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(enabled bool, tokens []string) *AuthMiddleware
func (*AuthMiddleware) Middleware ¶
func (m *AuthMiddleware) Middleware(next http.Handler) http.Handler
type EntryHandlers ¶
type EntryHandlers struct {
// contains filtered or unexported fields
}
func NewEntryHandlers ¶
func NewEntryHandlers( service EntryService, logger tracelog.Logger, tracer *tracing.Tracer, ) *EntryHandlers
func (*EntryHandlers) PingHandler ¶
func (h *EntryHandlers) PingHandler(w http.ResponseWriter, r *http.Request)
func (*EntryHandlers) StoreItemHandler ¶
func (h *EntryHandlers) StoreItemHandler(w http.ResponseWriter, r *http.Request)
func (*EntryHandlers) StoreListHandler ¶
func (h *EntryHandlers) StoreListHandler(w http.ResponseWriter, r *http.Request)
type EntryService ¶
type InfoHandlers ¶
type InfoHandlers struct {
// contains filtered or unexported fields
}
func NewInfoHandlers ¶
func NewInfoHandlers(logger tracelog.Logger) *InfoHandlers
func (*InfoHandlers) InfoHandler ¶
func (h *InfoHandlers) InfoHandler(w http.ResponseWriter, r *http.Request)
type RemoteIPMiddleware ¶
type RemoteIPMiddleware struct {
// contains filtered or unexported fields
}
func NewRemoteIPMiddleware ¶
func NewRemoteIPMiddleware(header string) *RemoteIPMiddleware
func (*RemoteIPMiddleware) Middleware ¶
func (m *RemoteIPMiddleware) Middleware(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.