stats

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 14 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) Init added in v0.6.2

func (svc *Service) Init() (err error)

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