Documentation ¶
Index ¶
- Variables
- func Acceptance(a *biff.A, apiRequest func(method, path string) *apitest.Request)
- func Save(response *apitest.Response, title, description string)
- type JSON
- type Service
- func (s *Service) CreateCollection(name string) (*collection.Collection, error)
- func (s *Service) DeleteCollection(name string) error
- func (s *Service) GetCollection(name string) (*collection.Collection, error)
- func (s *Service) Insert(name string, data io.Reader) error
- func (s *Service) ListCollections() map[string]*collection.Collection
- type Servicer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorCollectionAlreadyExists = errors.New("collection already exists")
View Source
var ErrorCollectionNotFound = errors.New("collection not found")
View Source
var ErrorInsertBadJson = errors.New("insert bad json")
View Source
var ErrorInsertConflict = errors.New("insert conflict")
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateCollection ¶
func (s *Service) CreateCollection(name string) (*collection.Collection, error)
func (*Service) DeleteCollection ¶
func (*Service) GetCollection ¶
func (s *Service) GetCollection(name string) (*collection.Collection, error)
func (*Service) ListCollections ¶
func (s *Service) ListCollections() map[string]*collection.Collection
type Servicer ¶
type Servicer interface { CreateCollection(name string) (*collection.Collection, error) GetCollection(name string) (*collection.Collection, error) ListCollections() map[string]*collection.Collection DeleteCollection(name string) error }
Click to show internal directories.
Click to hide internal directories.