Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceContext ¶
type ServiceContext struct {
// contains filtered or unexported fields
}
ServiceContext repersents context for services
func NewServiceContext ¶
func NewServiceContext(name string, dataDir string, logsDir string, debug bool) *ServiceContext
NewServiceContext creates a new ServiceContext
func (*ServiceContext) DataTransaction ¶
DataTransaction creates a new data storage transaction
func (ServiceContext) DebugEnabled ¶
func (c ServiceContext) DebugEnabled() bool
func (ServiceContext) GetLogger ¶
func (c ServiceContext) GetLogger() *logging.LogHandler
Click to show internal directories.
Click to hide internal directories.