template_network

package
v0.0.0-...-35a4376 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL