File: testserver.go

package info (click to toggle)
golang-github-mostynb-go-grpc-compression 1.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: makefile: 7
file content (13 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package testserver

import (
	"context"
)

var _ TestServerServer = (*EchoTestServer)(nil)

type EchoTestServer struct{}

func (f EchoTestServer) SendMessage(ctx context.Context, request *MessageRequest) (*MessageReply, error) {
	return &MessageReply{Response: request.Request}, nil
}