server

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingParameter = errors.NewKind("missing configuration parameter: %s")
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
}

Logger represents a generic logger, based on logrus.Logger

type LoggerFactory

type LoggerFactory struct {
	Level  string
	Fields string
	Format string
}

LoggerFactory is a helper for create logrus.Logger's

func (LoggerFactory) Apply

func (c LoggerFactory) Apply() error

Apply configures the standard logrus Logger with the LoggerFactory values.

func (LoggerFactory) New

func (c LoggerFactory) New() (Logger, error)

New returns a new logger based on the LoggerFactory values.

type Server

type Server struct {
	// Options list of grpc.ServerOption's.
	Options []grpc.ServerOption

	*grpc.Server
}

Server is a common implementation of a gRPC server.

func (*Server) Serve

func (s *Server) Serve(listener net.Listener) error

Serve accepts incoming connections on the listener lis, creating a new ServerTransport and service goroutine for each.

Jump to

Keyboard shortcuts

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