Documentation ¶
Index ¶
- Variables
- func AddOutputJsonYamlTextFlag(cmd *kingpin.CmdClause)
- func DefineDebugCommands(kpApp *kingpin.Application)
- func DefineDebugCommandsSelf(kpApp *kingpin.Application)
- func FormatFromRequest(request *http.Request) string
- func HandleFormattedOutput(writer http.ResponseWriter, request *http.Request, ...)
- func TransformUsingFormat(val interface{}, format string) ([]byte, error)
- type Client
- type ConfigRequest
- type HookRequest
- type QueueRequest
- type Server
- func (s *Server) Init() (err error)
- func (s *Server) Route(pattern string, handler func(request *http.Request) (interface{}, error))
- func (s *Server) RoutePOST(pattern string, handler func(request *http.Request) (interface{}, error))
- func (s *Server) WithPrefix(prefix string)
- func (s *Server) WithSocketPath(path string)
Constants ¶
This section is empty.
Variables ¶
View Source
var OutputFormat = "text"
Functions ¶
func AddOutputJsonYamlTextFlag ¶
func AddOutputJsonYamlTextFlag(cmd *kingpin.CmdClause)
func DefineDebugCommands ¶
func DefineDebugCommands(kpApp *kingpin.Application)
func DefineDebugCommandsSelf ¶ added in v1.0.8
func DefineDebugCommandsSelf(kpApp *kingpin.Application)
func FormatFromRequest ¶ added in v1.0.8
func HandleFormattedOutput ¶ added in v1.0.8
func TransformUsingFormat ¶ added in v1.0.8
Types ¶
type Client ¶
type Client struct {
SocketPath string
}
func DefaultClient ¶
func DefaultClient() *Client
func (*Client) WithSocketPath ¶
type ConfigRequest ¶ added in v1.0.8
type ConfigRequest struct {
// contains filtered or unexported fields
}
func Config ¶ added in v1.0.8
func Config(client *Client) *ConfigRequest
type HookRequest ¶ added in v1.0.8
type HookRequest struct {
// contains filtered or unexported fields
}
func Hook ¶ added in v1.0.8
func Hook(client *Client) *HookRequest
func (*HookRequest) List ¶ added in v1.0.8
func (r *HookRequest) List(format string) ([]byte, error)
func (*HookRequest) Name ¶ added in v1.0.8
func (r *HookRequest) Name(name string) *HookRequest
type QueueRequest ¶
type QueueRequest struct {
// contains filtered or unexported fields
}
func Queue ¶
func Queue(client *Client) *QueueRequest
type Server ¶
func (*Server) WithPrefix ¶
func (*Server) WithSocketPath ¶
Click to show internal directories.
Click to hide internal directories.