All checks were successful
ci/woodpecker/push/build Pipeline was successful
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
32 lines
669 B
Go
32 lines
669 B
Go
package v1
|
|
|
|
import (
|
|
"context"
|
|
|
|
test "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/test/v1"
|
|
)
|
|
|
|
func NewTestServer() *TestServer {
|
|
return &TestServer{}
|
|
}
|
|
|
|
type TestServer struct {
|
|
test.UnimplementedTestServiceServer
|
|
}
|
|
|
|
func (t *TestServer) Pong(ctx context.Context, in *test.PongRequest) (*test.PongResponse, error) {
|
|
return &test.PongResponse{}, nil
|
|
}
|
|
|
|
func NewPublicTestServer() *PublicTestServer {
|
|
return &PublicTestServer{}
|
|
}
|
|
|
|
type PublicTestServer struct {
|
|
test.UnimplementedPublicTestServiceServer
|
|
}
|
|
|
|
func (t *PublicTestServer) Ping(ctx context.Context, in *test.PingRequest) (*test.PingResponse, error) {
|
|
return &test.PingResponse{}, nil
|
|
}
|