Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application interface { Config() config.Config WithMW(mw mw.GrpcServerInterceptor) Application RunDebug(ctx context.Context) (*http.Server, error) Run(ctx context.Context, services ...IService) error Close() error }
Application main application interface
type IService ¶
type IService interface {
Register(srv grpc.ServiceRegistrar)
}
IService is the interface for all services
type RegisterFunc ¶
type RegisterFunc func(srv grpc.ServiceRegistrar)
RegisterFunc ...
func (RegisterFunc) Register ¶
func (f RegisterFunc) Register(srv grpc.ServiceRegistrar)
Register default implementation
Click to show internal directories.
Click to hide internal directories.