server

package
v0.0.0-...-837eb61 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPC

func GRPC(addr string, s *service.Service) error

GRPC creates and listens on grpc server

func InputValidationInterceptor

func InputValidationInterceptor() grpc.UnaryServerInterceptor

InputValidationInterceptor is a middleware for running the protobuf validation.

func NewGRPCServer

func NewGRPCServer(s *service.Service) *grpc.Server

NewGRPCServer creates a grpc server that serves all sample-data GRPC APIs

Types

type Server

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

Server is a sample-data server

func NewServer

func NewServer(service *service.Service) *Server

NewServer returns a sample-data server

Jump to

Keyboard shortcuts

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