Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AercServer ¶
type AercServer struct {
// contains filtered or unexported fields
}
func StartServer ¶
func StartServer(handler Handler, startup context.Context) (*AercServer, error)
func (*AercServer) Close ¶
func (as *AercServer) Close()
func (*AercServer) Serve ¶
func (as *AercServer) Serve()
type Request ¶
type Request struct { // Arguments contains the commandline arguments. The detection of what // action to take is left to the receiver. Arguments []string `json:"arguments"` }
Request contains all parameters needed for the main instance to respond to a request.
func DecodeMessage ¶
DecodeMessage consumes a raw message and returns the message contained within.
func DecodeRequest ¶
DecodeRequest consumes a raw message and returns the message contained within.
type Response ¶
type Response struct { // Error contains the success-state of the command. Error is an empty // string if everything ran successfully. Error string `json:"error"` }
Response is used to report the results of a command.
func ConnectAndExec ¶
func DecodeResponse ¶
DecodeResponse consumes a raw message and returns the message contained within.
Click to show internal directories.
Click to hide internal directories.