Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelloHandler ¶
func HelloHandler() http.HandlerFunc
HelloHandler returns function containing a simple hello world example of an api handler
Types ¶
type AuthHandler ¶ added in v0.2.0
type AuthHandler interface {
Require(required dpauth.Permissions, handler http.HandlerFunc) http.HandlerFunc
}
AuthHandler interface for adding auth to endpoints
type HelloResponse ¶
type HelloResponse struct {
Message string `json:"message,omitempty"`
}
type MongoServer ¶ added in v0.2.0
type MongoServer interface {
Close(ctx context.Context) error
Checker(ctx context.Context, state *healthcheck.CheckState) (err error)
}
MongoServer defines the required methods from MongoDB
Click to show internal directories.
Click to hide internal directories.