primitives

package
v0.0.0-...-0d639c9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoStore

type MongoStore struct {
	Client *mongo.Client
	Ctx    context.Context
	Cancel context.CancelFunc
	// contains filtered or unexported fields
}

func NewMongoConn

func NewMongoConn() *MongoStore

func (*MongoStore) Close

func (s *MongoStore) Close()

func (*MongoStore) Schedule

func (s *MongoStore) Schedule() *Schedule

type Schedule

type Schedule struct {
	Store *MongoStore
}

func (*Schedule) Delete

func (s *Schedule) Delete(id string) error

func (*Schedule) Find

func (*Schedule) GetList

func (s *Schedule) GetList() (map[string]string, error)

func (*Schedule) Make

func (s *Schedule) Make(schedule *constructor.Schedule) error

func (*Schedule) Rename

func (s *Schedule) Rename(id string, name string) error

func (*Schedule) Update

func (s *Schedule) Update(id string, schedule *constructor.Schedule) error

Jump to

Keyboard shortcuts

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