Documentation
¶
Overview ¶
Package systemapi provides components for the System API service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxEvents = common.GetEnvInt("MAX_EVENTS", 1000)
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(log *httplog.Logger, cfg *SystemAPIConfig) (server *Server, err error)
type SystemAPIConfig ¶ added in v0.5.0
type SystemAPIConfig struct { General systemAPIConfigGeneral Actions map[string]string FileUploads map[string]string `toml:"file_uploads"` }
func LoadConfig ¶ added in v0.5.0
func LoadConfig(content []byte) (*SystemAPIConfig, error)
func LoadConfigFromFile ¶ added in v0.5.0
func LoadConfigFromFile(path string) (*SystemAPIConfig, error)
func NewSystemAPIConfig ¶ added in v0.6.0
func NewSystemAPIConfig() *SystemAPIConfig
Click to show internal directories.
Click to hide internal directories.