Documentation
¶
Index ¶
- type CheckCommand
- type Command
- type InCommand
- type Messager
- func (rl *Messager) Fatal(message string)
- func (rl *Messager) FatalIf(doing string, err error)
- func (rl *Messager) GetLogWriter() io.Writer
- func (rl *Messager) GetResponseWriter() io.Writer
- func (rl *Messager) Log(message string, args ...interface{})
- func (rl *Messager) Logln(message string, args ...interface{})
- func (rl *Messager) RetrieveJsonRequest(v interface{}) error
- func (rl *Messager) SendJsonResponse(v interface{})
- type Metadata
- type OutCommand
- type Request
- type Response
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckCommand ¶
type CheckCommand struct {
*Command
}
func NewCheckCommand ¶
func NewCheckCommand() *CheckCommand
func NewCheckCommandWithMessager ¶
func NewCheckCommandWithMessager(messager *Messager) *CheckCommand
func (CheckCommand) Params ¶
func (c CheckCommand) Params(v interface{}) error
func (CheckCommand) Send ¶
func (c CheckCommand) Send(versions []Version)
type InCommand ¶
type InCommand struct {
*Command
}
func NewInCommand ¶
func NewInCommand() *InCommand
func (InCommand) DestinationFolder ¶
type Messager ¶
type Messager struct {
LogWriter io.Writer
ResponseWriter io.Writer
RequestReader io.Reader
ExitOnFatal bool
Directory string
}
func NewMessager ¶
func NewMessager() *Messager
func (*Messager) GetLogWriter ¶
func (*Messager) GetResponseWriter ¶
func (*Messager) RetrieveJsonRequest ¶
func (*Messager) SendJsonResponse ¶
func (rl *Messager) SendJsonResponse(v interface{})
type OutCommand ¶
type OutCommand struct {
*Command
}
func NewOutCommand ¶
func NewOutCommand() *OutCommand
func NewOutCommandWithMessager ¶
func NewOutCommandWithMessager(messager *Messager) *OutCommand
func (*OutCommand) SourceFolder ¶
func (c *OutCommand) SourceFolder() string
type Request ¶
type Request struct {
Source interface{} `json:"source"`
Version Version `json:"version"`
Params interface{} `json:"params"`
}
Click to show internal directories.
Click to hide internal directories.