Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) DeleteByID(ctx context.Context, col, id string) error
- func (s *Service) GetByID(ctx context.Context, col, id string, in interface{}) error
- func (s *Service) GetClient(ctx context.Context) error
- func (s *Service) GetCollection(ctx context.Context, name string) (col *firestore.CollectionRef, err error)
- func (s *Service) Save(ctx context.Context, col, id string, in interface{}) error
- func (s *Service) Update(ctx context.Context, col, id string, args map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDataNotFound is thrown when query does not find the requested data ErrDataNotFound = errors.New("data not found") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides object representing the inbound HTTP request.
func (*Service) DeleteByID ¶
DeleteByID deletes specific record by id.
func (*Service) GetCollection ¶
func (s *Service) GetCollection(ctx context.Context, name string) (col *firestore.CollectionRef, err error)
GetCollection returns specific store collection by name.
Click to show internal directories.
Click to hide internal directories.