Documentation ¶
Index ¶
- func GetResultService(id primitive.ObjectID, opts ...Option) (svc interfaces.ResultService, err error)
- func NewResultService(id primitive.ObjectID, opts ...Option) (svc2 interfaces.ResultService, err error)
- func ProvideGetResultService(id primitive.ObjectID, opts ...Option) func() (svc interfaces.ResultService, err error)
- type Option
- type Service
- func (svc *Service) Count(query bson.M) (total int, err error)
- func (svc *Service) GetId() (id primitive.ObjectID)
- func (svc *Service) GetList(query bson.M, opts *mongo.FindOptions) (results []interfaces.Result, err error)
- func (svc *Service) Insert(docs ...interface{}) (err error)
- func (svc *Service) SetId(id primitive.ObjectID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResultService ¶
func GetResultService(id primitive.ObjectID, opts ...Option) (svc interfaces.ResultService, err error)
func NewResultService ¶
func NewResultService(id primitive.ObjectID, opts ...Option) (svc2 interfaces.ResultService, err error)
func ProvideGetResultService ¶
func ProvideGetResultService(id primitive.ObjectID, opts ...Option) func() (svc interfaces.ResultService, err error)
Types ¶
type Option ¶
type Option func(svc interfaces.ResultService)
Click to show internal directories.
Click to hide internal directories.