Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager represents a plug-in manager.
func (*Manager) RegisterService ¶
RegisterService adds a plug-in service.
func (*Manager) ReloadServices ¶
ReloadServices reloads all plug-in services.
type Service ¶
type Service interface { // ServiceType returns the service type. ServiceType() ServiceType // ServiceName returns the service name. ServiceName() string // Start starts the service Start() error // Stop stops the service Stop() error }
Service represents a plugin service.
type ServiceType ¶
type ServiceType uint8
ServiceType represents a service type.
const ( // EncoderDocumentService represents a serializer service for document. EncoderDocumentService ServiceType = iota // EncoderKeyService represents a serializer service for key. EncoderKeyService // QueryService represents a query service. QueryService // StoreDocumentService represents a document store service. StoreDocumentService // StoreKvService represents a key-value store service. StoreKvService // CoordinatorService represents a coordinator service. CoordinatorService // ExtendService represents an uncategorized service. ExtendService )
func (ServiceType) String ¶
func (t ServiceType) String() string
String returns a string representation of the service type.
Click to show internal directories.
Click to hide internal directories.