Files
softplayer-backend/api/v1/test_auth.go
Nikolai Rodionov 33f48f2bfb
All checks were successful
ci/woodpecker/push/build Pipeline was successful
A lot of thigs are going on
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2026-05-10 23:14:29 +02:00

23 lines
529 B
Go

package v1
import (
"context"
"gitea.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/logger"
test "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/test/v1"
)
func NewTestAuthRPCImpl() *TestAuthServer {
return &TestAuthServer{}
}
type TestAuthServer struct {
test.UnimplementedTestAuthServiceServer
}
func (t *TestAuthServer) Pong(ctx context.Context, in *test.PongRequest) (*test.PongResponse, error) {
log := logger.FromContext(ctx)
log.Info("Pong")
return &test.PongResponse{}, nil
}