Documentation ¶
Index ¶
- type Server
- func (s *Server) CreateRecord(ctx context.Context, req *pb.CreateRecordRequest) (*pb.CreateRecordResponse, error)
- func (s *Server) GetRecord(ctx context.Context, req *pb.FindOneRecordRequest) (*pb.FindOneRecordResponse, error)
- func (s *Server) ListRecords(ctx context.Context, _ *pb.FindAllRecordsRequest) (*pb.FindAllRecordsResponse, error)
- func (s *Server) RemoveRecord(ctx context.Context, req *pb.DeleteRecordRequest) (*pb.DeleteRecordResponse, error)
- func (s *Server) UpdateRecord(ctx context.Context, req *pb.UpdateRecordRequest) (*pb.UpdateRecordResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { AuthServiceClient pb.AuthServiceClient H db.DB Logger *zap.Logger Validator *validator.Validate pb.RecordServiceServer }
func (*Server) CreateRecord ¶
func (s *Server) CreateRecord(ctx context.Context, req *pb.CreateRecordRequest) (*pb.CreateRecordResponse, error)
func (*Server) GetRecord ¶
func (s *Server) GetRecord(ctx context.Context, req *pb.FindOneRecordRequest) (*pb.FindOneRecordResponse, error)
func (*Server) ListRecords ¶
func (s *Server) ListRecords(ctx context.Context, _ *pb.FindAllRecordsRequest) (*pb.FindAllRecordsResponse, error)
func (*Server) RemoveRecord ¶
func (s *Server) RemoveRecord(ctx context.Context, req *pb.DeleteRecordRequest) (*pb.DeleteRecordResponse, error)
func (*Server) UpdateRecord ¶
func (s *Server) UpdateRecord(ctx context.Context, req *pb.UpdateRecordRequest) (*pb.UpdateRecordResponse, error)
Click to show internal directories.
Click to hide internal directories.