Documentation
¶
Index ¶
- Variables
- type Action
- type Config
- func DefaultConfig(fn ConfigFn) Config
- func NewConfig(order int, fn ConfigFn) Config
- func SetConstructorPluginDirs(dirs ...string) Config
- func SetFeatureEnvironment(f env.Env) Config
- func SetFeaturePluginDirs(groups []string, dirs ...string) Config
- func SetHandler(hs ...*Handler) Config
- func SetLogger(l log.Logger) Config
- func SetPopulateComponents(groups []string, files ...string) Config
- func SetPopulateEntities(groups []string, files ...string) Config
- func SetPopulateFeatures(groups []string, files ...string) Config
- func SetSocketPath(p string) Config
- type ConfigFn
- type Configuration
- type Handler
- type HandlerFunc
- type Handlers
- type Listener
- type ProcessFunc
- type Request
- type Response
- type Server
- type Service
- type Space
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoServiceError = xrr.Xrror("no service named %s available").Out UnknownActionError = xrr.Xrror("unknown action %s").Out )
View Source
var ( NONE = []byte("none") SYSTEM = []byte("system") QUERY = []byte("query") DATA = []byte("data") )
View Source
var ( UNKNOWN = []byte("unknown") PING = []byte("ping") QUIT = []byte("quit") STATUS = []byte("status") QUERYFEATURE = []byte("query_feature") QUERYCOMPONENT = []byte("query_component") QUERYENTITY = []byte("query_entity") POPULATEFROMFILES = []byte("populate_from_files") DEPOPULATE = []byte("depopulate") APPLYFEATURE = []byte("apply_feature") APPLYCOMPONENT = []byte("apply_component") APPLYENTITY = []byte("apply_entity") )
View Source
var NullResponse []byte
View Source
var Sep []byte = []byte("++")
Functions ¶
This section is empty.
Types ¶
type Config ¶
func DefaultConfig ¶
func SetFeatureEnvironment ¶
func SetFeaturePluginDirs ¶
func SetHandler ¶
func SetPopulateComponents ¶
func SetPopulateEntities ¶
func SetPopulateFeatures ¶
func SetSocketPath ¶
type Configuration ¶
type Handler ¶
type Handler struct {
Service, Action string
Fn HandlerFunc
}
func NewHandler ¶
func NewHandler(service, action string, fn HandlerFunc) *Handler
type HandlerFunc ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func (*Handlers) GetHandle ¶
func (h *Handlers) GetHandle(service, action string) (HandlerFunc, error)
func (*Handlers) GetRequestedHandle ¶
func (h *Handlers) GetRequestedHandle(r *Request) (HandlerFunc, error)
type Listener ¶
type Listener struct { Error error *net.UnixListener // contains filtered or unexported fields }
func NewListener ¶
func NewListener(socket string, fn ProcessFunc) *Listener
type ProcessFunc ¶
type Response ¶
func EmptyResponse ¶
func EmptyResponse() *Response
func ErrorResponse ¶
func NewResponse ¶
type Server ¶
type Server struct { Configuration log.Logger env.Env *Listener *Handlers // contains filtered or unexported fields }
func (*Server) SignalHandler ¶
Click to show internal directories.
Click to hide internal directories.