Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, viewDoc *model.ViewDoc, options ...service.FindOption) (*model.ViewDoc, error)
- func (s *Service) GetContent(ctx context.Context, id, domain, project string, opts ...service.FindOption) (*model.KVResponse, error)
- func (s *Service) List(ctx context.Context, domain, project string, opts ...service.FindOption) (*model.ViewResponse, error)
- func (s *Service) Update(ctx context.Context, viewDoc *model.ViewDoc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service operate data in mongodb
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, viewDoc *model.ViewDoc, options ...service.FindOption) (*model.ViewDoc, error)
Create insert a view data and create a mongo db view
func (*Service) GetContent ¶
func (s *Service) GetContent(ctx context.Context, id, domain, project string, opts ...service.FindOption) (*model.KVResponse, error)
GetContent query view's kv data
Click to show internal directories.
Click to hide internal directories.