server

package
v0.0.0-...-844d4e4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(di DI) (*http.Server, error)

NewServer initialises the gRPC server.

Types

type DI

type DI struct {
	Config                                        config.AppConfig
	Address                                       string
	Logger                                        *logger.Logger
	TracerProvider                                *tracer.Provider
	TracerProviderShutdownHandler, PreRunCallback func() error
	Handler                                       nethttp.Handler
}

DI is used to inject the server dependencies

Jump to

Keyboard shortcuts

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