goodrpc

package
v0.0.0-...-4a2620c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedAnalyticAPIServer
	// contains filtered or unexported fields
}

Server is a gRPC server based on pb package

func New

func New(an ports.Analyter, logger *zap.Logger, port string) *Server

New ..

func (*Server) Start

func (s *Server) Start() error

Start ...

func (*Server) Stop

func (s *Server) Stop()

Stop ...

func (*Server) WriteMessage

func (s *Server) WriteMessage(ctx context.Context, req *pb.WriteMessageRequest) (*empty.Empty, error)

WriteMessage ...

Jump to

Keyboard shortcuts

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