service

package
v0.0.0-...-a2aa5d8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conf *config.Config) (v1.PingServiceClient, error)

NewClient New service's client

func NewPongClient

func NewPongClient(conf *config.Config) (pongclientv1.PongServiceClient, error)

NewPongClient New pong service client

func NewServer

func NewServer(
	conf *config.Config,
	pingClient v1.PingServiceClient,
	pongClient pongclientv1.PongServiceClient,
) v1.PingServiceServer

NewServer New service grpc server

Types

type Server

type Server struct {
	v1.UnimplementedPingServiceServer
	// contains filtered or unexported fields
}

Server Server struct

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, req *v1.PingRequest) (*v1.PingResponse, error)

Jump to

Keyboard shortcuts

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