Documentation ¶
Index ¶
- func BuildSchema(s Service, scriptPath string) error
- func NewMessage(origin Service) *message
- func NewSType(name string, cTor ServiceCtor, ex bool) error
- func Schema(s Service) string
- func SchemaExists(s Service) (bool, error)
- func StartSysService(logger *log.Logger, sysName string)
- type AbstractService
- type DuplicateIDError
- type DuplicateTypeError
- type InitializationError
- type InvalidServiceError
- type InvalidTypeError
- type Service
- type ServiceCtor
- type Status
- type SysService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSchema ¶
func NewMessage ¶
func NewMessage(origin Service) *message
func StartSysService ¶
Types ¶
type AbstractService ¶
func NewAbstractService ¶
func NewAbstractService(name string, id int64, logger *log.Logger) *AbstractService
func (*AbstractService) ID ¶
func (s *AbstractService) ID() int64
func (*AbstractService) Name ¶
func (s *AbstractService) Name() string
type DuplicateIDError ¶
type DuplicateIDError error
type DuplicateTypeError ¶
type DuplicateTypeError error
type InitializationError ¶
type InitializationError error
type InvalidServiceError ¶
type InvalidServiceError error
type InvalidTypeError ¶
type InvalidTypeError error
type Service ¶
type Service interface { //Setup should perform first time setup routines for the Service such as creating database tables Setup() error //Init runs once at the Registration of the Service. acts like a secondary constructor Init() error Start() error Stop() Name() string ID() int64 // contains filtered or unexported methods }
type SysService ¶
type SysService struct { AbstractService // contains filtered or unexported fields }
func (*SysService) Init ¶
func (s *SysService) Init() error
func (*SysService) Running ¶
func (s *SysService) Running() bool
func (*SysService) Setup ¶
func (s *SysService) Setup() error
func (*SysService) Start ¶
func (s *SysService) Start() error
func (*SysService) Stop ¶
func (s *SysService) Stop()
Click to show internal directories.
Click to hide internal directories.