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
Click to show internal directories.
Click to hide internal directories.