Documentation ¶
Index ¶
- type AuthGrpcServer
- func (a *AuthGrpcServer) Me(ctx context.Context, empty *emptypb.Empty) (*proto.User, error)
- func (a *AuthGrpcServer) Signup(ctx context.Context, request *proto.SignupRequest) (*proto.TokenResponse, error)
- func (a *AuthGrpcServer) Token(ctx context.Context, request *proto.TokenRequest) (*proto.TokenResponse, error)
- type HealthGrpcServer
- func (s *HealthGrpcServer) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
- func (s *HealthGrpcServer) Liveness(ctx context.Context, empty *emptypb.Empty) (*proto.LivenessResponse, error)
- func (s *HealthGrpcServer) Readiness(ctx context.Context, empty *emptypb.Empty) (*proto.ReadinessResponse, error)
- func (s *HealthGrpcServer) Watch(request *grpc_health_v1.HealthCheckRequest, ...) error
- type TodoGrpcServer
- func (s *TodoGrpcServer) Create(ctx context.Context, request *proto.CreateRequest) (*proto.Todo, error)
- func (s *TodoGrpcServer) Delete(ctx context.Context, request *proto.DeleteRequest) (*emptypb.Empty, error)
- func (s *TodoGrpcServer) Get(ctx context.Context, request *proto.GetRequest) (*proto.Todo, error)
- func (s *TodoGrpcServer) ListAll(ctx context.Context, request *emptypb.Empty) (*proto.ListAllResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthGrpcServer ¶
type AuthGrpcServer struct { proto.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthGrpcServer ¶
func NewAuthGrpcServer(service *services.AuthService) *AuthGrpcServer
func (*AuthGrpcServer) Signup ¶
func (a *AuthGrpcServer) Signup(ctx context.Context, request *proto.SignupRequest) (*proto.TokenResponse, error)
func (*AuthGrpcServer) Token ¶
func (a *AuthGrpcServer) Token(ctx context.Context, request *proto.TokenRequest) (*proto.TokenResponse, error)
type HealthGrpcServer ¶
type HealthGrpcServer struct { grpc_health_v1.UnimplementedHealthServer proto.UnimplementedHealthServiceServer // contains filtered or unexported fields }
func NewHealthGrpcServer ¶
func NewHealthGrpcServer(db *gorm.DB) *HealthGrpcServer
func (*HealthGrpcServer) Check ¶
func (s *HealthGrpcServer) Check(ctx context.Context, request *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthGrpcServer) Liveness ¶
func (s *HealthGrpcServer) Liveness(ctx context.Context, empty *emptypb.Empty) (*proto.LivenessResponse, error)
func (*HealthGrpcServer) Readiness ¶
func (s *HealthGrpcServer) Readiness(ctx context.Context, empty *emptypb.Empty) (*proto.ReadinessResponse, error)
func (*HealthGrpcServer) Watch ¶
func (s *HealthGrpcServer) Watch(request *grpc_health_v1.HealthCheckRequest, server grpc_health_v1.Health_WatchServer) error
type TodoGrpcServer ¶
type TodoGrpcServer struct { proto.UnimplementedTodoServiceServer // contains filtered or unexported fields }
func NewTodoGrpcServer ¶
func NewTodoGrpcServer(repo repository) *TodoGrpcServer
func (*TodoGrpcServer) Create ¶
func (s *TodoGrpcServer) Create(ctx context.Context, request *proto.CreateRequest) (*proto.Todo, error)
func (*TodoGrpcServer) Delete ¶ added in v0.1.8
func (s *TodoGrpcServer) Delete(ctx context.Context, request *proto.DeleteRequest) (*emptypb.Empty, error)
func (*TodoGrpcServer) Get ¶
func (s *TodoGrpcServer) Get(ctx context.Context, request *proto.GetRequest) (*proto.Todo, error)
func (*TodoGrpcServer) ListAll ¶
func (s *TodoGrpcServer) ListAll(ctx context.Context, request *emptypb.Empty) (*proto.ListAllResponse, error)
Click to show internal directories.
Click to hide internal directories.