server

package
v0.0.0-...-f12ea2b Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Unlicense Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Bootstrap, rating *service.RatingService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Bootstrap, rating *service.RatingService, _ log.Logger) *http.Server

NewHTTPServer new an HTTP server.

func NewLogger

func NewLogger() (log.Logger, func())

func NewNamingClient

func NewNamingClient(_ *conf.Bootstrap) (rr registry.Registrar, err error)

Types

type ZapLogger

type ZapLogger struct {
	// contains filtered or unexported fields
}

ZapLogger is a logger impl.

func (*ZapLogger) Log

func (l *ZapLogger) Log(level log.Level, keyvals ...interface{}) error

Log Implementation of logger interface.

Jump to

Keyboard shortcuts

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