grpcservers

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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) Me

func (a *AuthGrpcServer) Me(ctx context.Context, empty *emptypb.Empty) (*proto.User, error)

func (*AuthGrpcServer) Signup

func (*AuthGrpcServer) Token

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) Liveness

func (*HealthGrpcServer) Readiness

func (s *HealthGrpcServer) Readiness(ctx context.Context, empty *emptypb.Empty) (*proto.ReadinessResponse, error)

func (*HealthGrpcServer) Watch

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL