Documentation
¶
Overview ¶
Package node provides utilities to control all long running background services on Centrifuge node
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶
type Bootstrapper struct{}
Bootstrapper implements bootstrap.Bootstrapper.
func (*Bootstrapper) Bootstrap ¶
func (*Bootstrapper) Bootstrap(c map[string]interface{}) error
Bootstrap runs the severs. Note: this is a blocking call.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node provides utilities to control all background services on Cent Node
type Server ¶
type Server interface { // Name is the unique name given to the service within the Cent Node Name() string // Start starts the service, expectation is that this would always be called in a separate go routine. // WaitGroup contract should always be honoured by calling `defer wg.Done()` Start(ctx context.Context, wg *sync.WaitGroup, startupErr chan<- error) }
Server interface must be implemented by all background services on Cent Node
Click to show internal directories.
Click to hide internal directories.