stats

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTaskStatsService

func GetTaskStatsService(path string, opts ...Option) (svr interfaces.TaskStatsService, err error)

func NewTaskStatsService

func NewTaskStatsService(opts ...Option) (svc2 interfaces.TaskStatsService, err error)

func ProvideGetTaskStatsService

func ProvideGetTaskStatsService(path string, opts ...Option) func() (svr interfaces.TaskStatsService, err error)

Types

type Option

type Option func(service interfaces.TaskStatsService)

func WithConfigPath

func WithConfigPath(path string) Option

type Service

type Service struct {
	// dependencies
	interfaces.TaskBaseService
	// contains filtered or unexported fields
}

func (*Service) InsertData

func (svc *Service) InsertData(id primitive.ObjectID, records ...interface{}) (err error)

func (*Service) InsertLogs

func (svc *Service) InsertLogs(id primitive.ObjectID, logs ...string) (err error)

Jump to

Keyboard shortcuts

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