Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler struct {
// contains filtered or unexported fields
}
CommandHandler contains command handling details which can be used to build controller commands.
func NewCommandHandler ¶
func NewCommandHandler(name, method string, exec command.Exec) *CommandHandler
NewCommandHandler returns instance of CommandHandler which can be used handle controller commands.
func (*CommandHandler) Handle ¶
func (c *CommandHandler) Handle() command.Exec
Handle returns execute function of the command handler.
func (*CommandHandler) Method ¶
func (c *CommandHandler) Method() string
Method name of the command.
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler contains REST API handling details which can be used to build routers for http requests for given path.
func NewHTTPHandler ¶
func NewHTTPHandler(path, method string, handle http.HandlerFunc) *HTTPHandler
NewHTTPHandler returns instance of HTTPHandler which can be used handle http requests.
func (*HTTPHandler) Handle ¶
func (h *HTTPHandler) Handle() http.HandlerFunc
Handle returns http request handle func.
func (*HTTPHandler) Method ¶
func (h *HTTPHandler) Method() string
Method returns http request method type.
Click to show internal directories.
Click to hide internal directories.