Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigBase ¶
ConfigBase is a interface used by Service
type Service ¶
type Service interface { New() Service ConfigBase() ConfigBase StartGRPC(registrar grpc.ServiceRegistrar) error Close() }
Service is a interface
type ServiceRunner ¶
type ServiceRunner struct {
// contains filtered or unexported fields
}
ServiceRunner allow you run grpc service all-in-one
func (*ServiceRunner) AddService ¶
func (s *ServiceRunner) AddService(serviceUnits ...ServiceUnit) error
AddService start a grpc server on addr, and registe all serviceUints
type ServiceUnit ¶
ServiceUnit contain a service and it's config file path
Click to show internal directories.
Click to hide internal directories.