grpc

package
v0.0.0-...-492eba3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service contains the main controller logic.

func NewService

func NewService(opts ...ServiceOption) *Service

NewService creates a new service object.

type ServiceOption

type ServiceOption func(s *Service)

ServiceOption sets options in the Service.

func ErrorHandler

func ErrorHandler(l emperror.Handler) ServiceOption

ErrorHandler returns a ServiceOption that sets the error handler for the service.

func Logger

func Logger(l log.Logger) ServiceOption

Logger returns a ServiceOption that sets the logger for the service.

Jump to

Keyboard shortcuts

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