grpc

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 4 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 {
	Port              string
	Timeout           time.Duration
	UnaryInterceptors []grpc.UnaryServerInterceptor
	StreamInterceptos []grpc.StreamServerInterceptor
	// contains filtered or unexported fields
}

Config is basic GRPC server config.

type Server

type Server interface {
	Run() chan error
	Server() *grpc.Server
	Close() error
}

Server serves GRPC endpoints.

func New

func New(cfg Config) Server

New to create new grpc server.

Jump to

Keyboard shortcuts

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