Documentation ¶
Index ¶
- func ErrorMessage(m string) []byte
- func MarshalToJson(m interface{}) []byte
- func SendError(err error, writer http.ResponseWriter, errcode int)
- func SendJsonResponse(m interface{}, writer http.ResponseWriter) error
- func Start(addr string, pi *pack.PackIndex, rc *pack.RunConfig, datadir string, ...)
- type ActivateRequest
- type ActivateResponse
- type AddRoute
- type AddUserMessage
- type AddVariableRequest
- type Claims
- type CloneRequest
- type CloneResponse
- type Credentials
- type DeleteRoute
- type DeleteVaribleRequest
- type Error
- type GetIntegration
- type GetPacksResponse
- type GetRoute
- type GetRouteRequest
- type GetRunnerResponse
- type Hash
- type JSONPasswordDB
- type LoginMessage
- type MoxsoarMessage
- type SaveRequest
- type StatusMessage
- type TrackerStatus
- type UpdateRequest
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorMessage ¶
func MarshalToJson ¶
func MarshalToJson(m interface{}) []byte
func SendJsonResponse ¶
func SendJsonResponse(m interface{}, writer http.ResponseWriter) error
Types ¶
type ActivateRequest ¶
type ActivateRequest struct {
PackName string
}
type ActivateResponse ¶
type ActivateResponse struct {
Message string
}
type AddRoute ¶
type AddRoute struct {
Route *integrations.Route
}
type AddUserMessage ¶
type AddUserMessage struct {
Message string
}
type CloneRequest ¶
type CloneResponse ¶
type CloneResponse struct {
Message string
}
type DeleteRoute ¶
type DeleteRoute struct {
Path string
}
type DeleteVaribleRequest ¶
type DeleteVaribleRequest struct {
Key string
}
type GetIntegration ¶
type GetIntegration struct { Integration string Addr string Port string Routes []*integrations.Route }
type GetRoute ¶
type GetRoute struct { Route *integrations.Route ResponseString string }
type GetRouteRequest ¶
type GetRouteRequest struct {
// contains filtered or unexported fields
}
type GetRunnerResponse ¶
type JSONPasswordDB ¶
type JSONPasswordDB struct {
Path string
}
type LoginMessage ¶
type MoxsoarMessage ¶
type MoxsoarMessage interface {
Parse() error
}
type SaveRequest ¶
type StatusMessage ¶
type StatusMessage struct {
Message string
}
type UpdateRequest ¶
type UpdateRequest struct {
PackName string
}
type User ¶
type User struct { Credentials Credentials Name string }
Click to show internal directories.
Click to hide internal directories.