Documentation
¶
Index ¶
Constants ¶
View Source
const ( PublishOffering = "publish" PopupOffering = "popup" DeactivateOffering = "deactivate" )
Actions that change offerings state.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionPayload ¶
type ActionPayload struct {
Action string `json:"action"`
}
ActionPayload is a body format for action requests.
type OfferingPutPayload ¶
OfferingPutPayload offering status update payload.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is agent api server.
func NewServer ¶
func NewServer(conf *Config, logger *util.Logger, db *reform.DB, queue *job.Queue, pwdStorage data.PWDGetSetter) *Server
NewServer creates a new agent server.
func (*Server) ListenAndServe ¶
ListenAndServe starts a server.
Click to show internal directories.
Click to hide internal directories.