Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDocuments = errors.New("no results found")
Functions ¶
Types ¶
type CategoryService ¶
type CategoryService interface { All(ctx context.Context) ([]api.Category, error) Find(ctx context.Context, id string) (*api.Category, error) FindByPatient(ctx context.Context, id string) ([]api.Category, error) Add(ctx context.Context, category *api.Category) error Update(ctx context.Context, category *api.Category) error }
type DatabaseConfig ¶
func (DatabaseConfig) String ¶
func (config DatabaseConfig) String() string
type NotFoundError ¶
func NewNotFoundError ¶
func NewNotFoundError(Id string, Collection string, Error error) *NotFoundError
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
func (*NotFoundError) Is ¶
func (e *NotFoundError) Is(tgt error) bool
func (*NotFoundError) Unwrap ¶
func (e *NotFoundError) Unwrap() error
type QueryOptions ¶
func NewQueryOptions ¶
func NewQueryOptions() *QueryOptions
func (*QueryOptions) SetLimit ¶
func (options *QueryOptions) SetLimit(value int64) *QueryOptions
func (*QueryOptions) SetSkip ¶
func (options *QueryOptions) SetSkip(value int64) *QueryOptions
func (*QueryOptions) SetSort ¶
func (options *QueryOptions) SetSort(key string) *QueryOptions
type RecordQuery ¶
func NewRecordQuery ¶
func NewRecordQuery(queryFuncs ...RecordQueryFunc) RecordQuery
type RecordQueryFunc ¶
type RecordQueryFunc = func(query *RecordQuery)
func WithIds ¶
func WithIds(queryIds []string) RecordQueryFunc
func WithNoContent ¶
func WithNoContent() RecordQueryFunc
func WithPatientId ¶
func WithPatientId(patientId string) RecordQueryFunc
func WithStatus ¶
func WithStatus(status api.Status) RecordQueryFunc
type RecordService ¶
type RecordService interface { All(ctx context.Context) ([]api.Record, error) Find(ctx context.Context, id string) (*api.Record, error) Query(ctx context.Context, query RecordQuery, queryOption ...*QueryOptions) ([]api.Record, error) Create(ctx context.Context, data api.CreateRecord, images []storage.Image, pdfData io.Reader) (*api.Record, error) Delete(ctx context.Context, id string) error Update(ctx context.Context, id string, record api.Record, updateOptions ...UpdateOption) (*api.Record, error) UpdatePages(ctx context.Context, id string, updates []api.PageUpdate) (*api.Record, error) }
type TagService ¶
type UpdateOption ¶
func IfNotModifiedSince ¶
func IfNotModifiedSince(modified time.Time) UpdateOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.