Documentation ¶
Index ¶
Constants ¶
View Source
const ( Path = "./config.toml" Hearbeat = "heartbeat.>" Commands = "commands" Config = "config" )
Variables ¶
View Source
var ( // ErrMalformedEntity indicates malformed entity specification ErrMalformedEntity = errors.New("malformed entity specification") // ErrInvalidQueryParams indicates malformed URL ErrInvalidQueryParams = errors.New("invalid query params") )
Functions ¶
This section is empty.
Types ¶
type Heartbeat ¶ added in v0.11.0
type Heartbeat interface { Update() Info() Info }
Heartbeat specifies api for updating status and keeping track on services that are sending heartbeat to NATS.
type Service ¶
type Service interface { // Execute command Execute(string, string) (string, error) // Control command Control(string, string) error // Update configuration file AddConfig(config.Config) error // Config returns Config struct created from config file Config() config.Config // Saves config file ServiceConfig(uuid, cmdStr string) error // Services returns service list Services() []Info // Terminal used for terminal control of gateway Terminal(string, string) error // Publish message Publish(string, string) error }
Service specifies API for publishing messages and subscribing to topics.
Click to show internal directories.
Click to hide internal directories.