Documentation
¶
Index ¶
Constants ¶
View Source
const ( EXIT_SUCCESS int = iota EXIT_ARGUMENT EXIT_SERVICE EXIT_CONNECT EXIT_REGISTRATION )
View Source
const BROKER_URL_ENV string = "SERVICE_BROKER_URL"
View Source
const LOG_FORMAT_ENV string = "SERVICE_LOGFORMAT"
View Source
const PASSWORD_ENV string = "SERVICE_PASSWORD"
View Source
const USERNAME_ENV string = "SERVICE_USERNAME"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSubscribtion ¶ added in v0.8.0
type EventSubscribtion struct {
Handler turnpike.EventHandler
Options map[string]interface{}
}
type HandlerRegistration ¶ added in v0.8.0
type HandlerRegistration struct {
Handler turnpike.MethodHandler
Options map[string]interface{}
}
type RegistrationError ¶ added in v0.8.0
type Service ¶
type Service struct {
Logger *logging.Logger
Client *turnpike.Client
// contains filtered or unexported fields
}
func (*Service) RegisterAll ¶ added in v0.8.0
func (self *Service) RegisterAll(procedures map[string]HandlerRegistration) *RegistrationError
func (*Service) SubscribeAll ¶ added in v0.8.0
func (self *Service) SubscribeAll(procedures map[string]EventSubscribtion) *SubscribtionError
type SubscribtionError ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.