grpcserver

package
v0.0.0-...-b401549 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package grpcserver implements gRPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

Option -.

func Addr

func Addr(addr string) Option

Addr -.

func ShutdownTimeout

func ShutdownTimeout(timeout time.Duration) Option

ShutdownTimeout -.

func StreamInterceptor

func StreamInterceptor(interceptor grpc.StreamServerInterceptor) Option

StreamInterceptor -.

func UnaryInterceptor

func UnaryInterceptor(interceptor grpc.UnaryServerInterceptor) Option

UnaryInterceptor -.

type Server

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

Server -.

func New

func New(gRPCServer *grpc.Server, opts ...Option) *Server

New -.

func (*Server) Notify

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

Notify -.

func (*Server) RegisterService

func (s *Server) RegisterService(desc *grpc.ServiceDesc, impl interface{})

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown -.

Jump to

Keyboard shortcuts

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