Documentation ¶
Index ¶
- type Server
- func (s *Server) CreateResult(ctx context.Context, req *pb.CreateResultRequest) (*pb.Result, error)
- func (s Server) DeleteResult(ctx context.Context, req *pb.DeleteResultRequest) (*empty.Empty, error)
- func (s *Server) GetResult(ctx context.Context, req *pb.GetResultRequest) (*pb.Result, error)
- func (s *Server) ListResultsResult(ctx context.Context, req *pb.ListResultsRequest) (*pb.ListResultsResponse, error)
- func (s Server) UpdateResult(ctx context.Context, req *pb.UpdateResultRequest) (*pb.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedResultsServer // contains filtered or unexported fields }
Server with implementation of API server
func (*Server) CreateResult ¶
CreateResult receives CreateResultRequest from clients and save it to local Sqlite Server.
func (Server) DeleteResult ¶
func (s Server) DeleteResult(ctx context.Context, req *pb.DeleteResultRequest) (*empty.Empty, error)
DeleteResult receives DeleteResult request from users and delete Result in local Sqlite Server.
func (*Server) GetResult ¶
GetResult received GetResultRequest from users and return Result back to users
func (*Server) ListResultsResult ¶
func (s *Server) ListResultsResult(ctx context.Context, req *pb.ListResultsRequest) (*pb.ListResultsResponse, error)
ListResultsResult receives a ListResultRequest from users and return to users a list of Results according to the query
func (Server) UpdateResult ¶
UpdateResult receives Result and FieldMask from client and uses them to update records in local Sqlite Server.
Click to show internal directories.
Click to hide internal directories.