result

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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)

func WithId

func WithId(id primitive.ObjectID) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Count

func (svc *Service) Count(query bson.M) (total int, err error)

func (*Service) GetId

func (svc *Service) GetId() (id primitive.ObjectID)

func (*Service) GetList

func (svc *Service) GetList(query bson.M, opts *mongo.FindOptions) (results []interfaces.Result, err error)

func (*Service) Insert

func (svc *Service) Insert(docs ...interface{}) (err error)

func (*Service) SetId

func (svc *Service) SetId(id primitive.ObjectID)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL