grpc

package module
v0.0.0-...-5b7f2e2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host       string `cfg:"host"`
	Port       string `cfg:"port"`
	Reflection bool   `cfg:"reflection"`
}

func (Config) Address

func (c Config) Address() string

type Handler

type Handler interface {
	RegisterService(grpc.ServiceRegistrar)
}

type Server

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

func New

func New(config Config, opts ...grpc.ServerOption) *Server

func (Server) Listen

func (s Server) Listen()

func (Server) Notify

func (s Server) Notify() <-chan error

func (Server) RegisterService

func (s Server) RegisterService(handler Handler)

func (Server) Shutdown

func (s Server) Shutdown()

Jump to

Keyboard shortcuts

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