Documentation ¶
Index ¶
- type TemplateNetwork
- func (t *TemplateNetwork[ConfigType, Router]) StartGRPCServer(logBody bool, registrar func(grpc.ServiceRegistrar)) error
- func (t *TemplateNetwork[ConfigType, Router]) StartGRPCServerWithGateway(logBody bool, registrar func(grpc.ServiceRegistrar), ...) error
- func (t *TemplateNetwork[ConfigType, Router]) StartHTTPServerWithOpenapi(level log.Level, logBody bool, ...) error
- func (t *TemplateNetwork[ConfigType, Router]) StartHTTPServerWithRawMount(level log.Level, logBody bool, rawMount func(Router)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateNetwork ¶
type TemplateNetwork[ConfigType config.WithValidation, Router router.HTTPRouter] struct { // contains filtered or unexported fields }
func NewTemplateNetwork ¶
func NewTemplateNetwork[ConfigType config.WithValidation, Router router.HTTPRouter]( template *template.Template[ConfigType], ) *TemplateNetwork[ConfigType, Router]
func (*TemplateNetwork[ConfigType, Router]) StartGRPCServer ¶
func (t *TemplateNetwork[ConfigType, Router]) StartGRPCServer( logBody bool, registrar func(grpc.ServiceRegistrar), ) error
func (*TemplateNetwork[ConfigType, Router]) StartGRPCServerWithGateway ¶
func (t *TemplateNetwork[ConfigType, Router]) StartGRPCServerWithGateway( logBody bool, registrar func(grpc.ServiceRegistrar), rawMount func(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error), ) error
func (*TemplateNetwork[ConfigType, Router]) StartHTTPServerWithOpenapi ¶
func (t *TemplateNetwork[ConfigType, Router]) StartHTTPServerWithOpenapi( level log.Level, logBody bool, handler openapi.RawHandlersWithSpecification[Router], ) error
func (*TemplateNetwork[ConfigType, Router]) StartHTTPServerWithRawMount ¶
func (t *TemplateNetwork[ConfigType, Router]) StartHTTPServerWithRawMount( level log.Level, logBody bool, rawMount func(Router), ) error
Click to show internal directories.
Click to hide internal directories.