Documentation ¶
Overview ¶
Package service contains echo service implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoService ¶
type EchoService struct {
echopb.UnimplementedEchoServiceServer
}
EchoService implements the EchoServiceServer interface.
func (*EchoService) AppendTimestampInterceptor ¶
func (*EchoService) AppendTimestampInterceptor( ctx context.Context, req any, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (resp any, err error)
AppendTimestampInterceptor appends timestamps to the echo response.
func (*EchoService) Echo ¶
func (s *EchoService) Echo(ctx context.Context, req *echopb.EchoRequest) (resp *echopb.EchoResponse, err error)
Echo returns the request as a response with some additional timestamps.
Click to show internal directories.
Click to hide internal directories.