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