service

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingService

type PingService struct {
	pb.UnimplementedServiceServer
	// contains filtered or unexported fields
}

PingService represents the server that responds to pings

func NewPingService

func NewPingService(list net.Listener) *PingService

NewPingService creates an instance of the PingService

func (*PingService) Ping

func (s *PingService) Ping(ctx context.Context, req *pb.PingRequest) (res *pb.PingResponse, err error)

Ping performs ping

func (*PingService) Start

func (s *PingService) Start(ctx context.Context) error

Start starts the ping service as a gRPC server

func (*PingService) StartHTTP

func (s *PingService) StartHTTP(ctx context.Context, addr string) error

StartHTTP starts the ping service as a HTTP server

func (*PingService) Stream

func (s *PingService) Stream(stream pb.Service_StreamServer) error

Stream stream messages

Jump to

Keyboard shortcuts

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