Documentation ¶
Index ¶
- Variables
- type RPCServer
- func (s *RPCServer) CreateCustomer(ctx context.Context, req *pro.CustomerDetails) (*pro.CustomerResponse, error)
- func (s *RPCServer) CreateTask(ctx context.Context, req *pro.TaskDetails) (*pro.TaskResponse, error)
- func (s *RPCServer) DeleteTask(ctx context.Context, req *pro.TaskDelete) (*pro.Empty, error)
- func (s *RPCServer) EditTask(ctx context.Context, req *pro.EditTaskDetails) (*pro.TaskResponse, error)
- func (s *RPCServer) GetTask(ctx context.Context, req *pro.TaskDelete) (*pro.GetTasksResponse, error)
- func (s *RPCServer) GetTaskbyId(ctx context.Context, req *pro.TaskDelete) (*pro.TaskDetails, error)
- func (s *RPCServer) InsertToken(ctx context.Context, req *pro.Token) (*pro.TokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CustomerService interfaces.Customer
)
Functions ¶
This section is empty.
Types ¶
type RPCServer ¶
type RPCServer struct {
pro.UnimplementedGoTaskServiceServer
}
func (*RPCServer) CreateCustomer ¶
func (s *RPCServer) CreateCustomer(ctx context.Context, req *pro.CustomerDetails) (*pro.CustomerResponse, error)
func (*RPCServer) CreateTask ¶
func (s *RPCServer) CreateTask(ctx context.Context, req *pro.TaskDetails) (*pro.TaskResponse, error)
func (*RPCServer) DeleteTask ¶
func (*RPCServer) EditTask ¶
func (s *RPCServer) EditTask(ctx context.Context, req *pro.EditTaskDetails) (*pro.TaskResponse, error)
func (*RPCServer) GetTask ¶
func (s *RPCServer) GetTask(ctx context.Context, req *pro.TaskDelete) (*pro.GetTasksResponse, error)
func (*RPCServer) GetTaskbyId ¶
func (s *RPCServer) GetTaskbyId(ctx context.Context, req *pro.TaskDelete) (*pro.TaskDetails, error)
func (*RPCServer) InsertToken ¶
Click to show internal directories.
Click to hide internal directories.