grpc

package
v0.0.0-...-f767cfc Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(options ...HandlerOption) *Handler

func (*Handler) Server

func (h *Handler) Server() Server

type HandlerOption

type HandlerOption func(h *Handler)

func WithAddress

func WithAddress(addr string) HandlerOption

func WithLogger

func WithLogger(logger Logger) HandlerOption

func WithService

func WithService(services service.Services) HandlerOption

type Logger

type Logger interface {
	InfoFields(msg string, fields map[string]any)
}

type Server

type Server interface {
	Serve() error
	Shutdown(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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