Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OneShotFunc ¶
Types ¶
type ServiceContext ¶
type ServiceContext struct {
// contains filtered or unexported fields
}
func NewServiceContext ¶
func NewServiceContext(name string) ServiceContext
func (ServiceContext) Context ¶
func (b ServiceContext) Context() context.Context
func (ServiceContext) String ¶
func (b ServiceContext) String() string
type ServiceFunc ¶
type ServiceFunc struct {
// contains filtered or unexported fields
}
func NewServiceFunc ¶
func NewServiceFunc(name string, fn func(ctx context.Context) error) ServiceFunc
func (ServiceFunc) String ¶
func (s ServiceFunc) String() string
Click to show internal directories.
Click to hide internal directories.