Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(server *Server, services RegisterParams)
Types ¶
type GetCatFactResponse ¶
type GetCatFactResponse struct {
Fact string `json:"fact"`
}
type GetDogFactResponse ¶
type GetDogFactResponse struct {
Fact string `json:"fact"`
}
type GetEntertainmentFactResponse ¶
type GetEntertainmentFactResponse struct {
Fact string `json:"fact"`
}
type GetHandler ¶
GetHandler defines the HTTP GET Handlers.
type GetTrivialFactResponse ¶
type GetTrivialFactResponse struct {
Fact string `json:"fact"`
}
type PostHandler ¶
PostHandler definres the HTTP POST Handlers.
type RegisterParams ¶
type RegisterParams struct {
Fact FactSvc
}
type RegisteredPath ¶
type RegisteredPath struct {
// contains filtered or unexported fields
}
RegisteredPath defines the type used when a path is registered.
func (*RegisteredPath) Get ¶
func (r *RegisteredPath) Get(opID string, handler GetHandler) *RegisteredPath
Click to show internal directories.
Click to hide internal directories.