Documentation ¶
Index ¶
- type Option
- type Server
- func (s *Server) CreateRecord(ctx context.Context, req *pb.CreateRecordRequest) (*pb.Record, error)
- func (s *Server) CreateResult(ctx context.Context, req *pb.CreateResultRequest) (*pb.Result, error)
- func (s *Server) DeleteRecord(ctx context.Context, req *pb.DeleteRecordRequest) (*empty.Empty, error)
- func (s *Server) DeleteResult(ctx context.Context, req *pb.DeleteResultRequest) (*empty.Empty, error)
- func (s *Server) GetRecord(ctx context.Context, req *pb.GetRecordRequest) (*pb.Record, error)
- func (s *Server) GetResult(ctx context.Context, req *pb.GetResultRequest) (*pb.Result, error)
- func (s *Server) ListRecords(ctx context.Context, req *pb.ListRecordsRequest) (*pb.ListRecordsResponse, error)
- func (s *Server) ListResults(ctx context.Context, req *pb.ListResultsRequest) (*pb.ListResultsResponse, error)
- func (s *Server) UpdateRecord(ctx context.Context, req *pb.UpdateRecordRequest) (*pb.Record, 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) CreateRecord ¶
func (*Server) CreateResult ¶
CreateResult creates a new result in the database.
func (*Server) DeleteRecord ¶
func (s *Server) DeleteRecord(ctx context.Context, req *pb.DeleteRecordRequest) (*empty.Empty, error)
DeleteRecord deletes a given record.
func (*Server) DeleteResult ¶
func (s *Server) DeleteResult(ctx context.Context, req *pb.DeleteResultRequest) (*empty.Empty, error)
DeleteResult deletes a given result.
func (*Server) ListRecords ¶
func (s *Server) ListRecords(ctx context.Context, req *pb.ListRecordsRequest) (*pb.ListRecordsResponse, error)
func (*Server) ListResults ¶
func (s *Server) ListResults(ctx context.Context, req *pb.ListResultsRequest) (*pb.ListResultsResponse, error)
func (*Server) UpdateRecord ¶
UpdateRecord updates a record in the database.
func (*Server) UpdateResult ¶
UpdateResult updates a Result in the database.
Directories ¶
Path | Synopsis |
---|---|
Package record provides utilities for manipulating and validating Records.
|
Package record provides utilities for manipulating and validating Records. |
Package result provides utilities for manipulating and validating Results.
|
Package result provides utilities for manipulating and validating Results. |
Click to show internal directories.
Click to hide internal directories.