Documentation
¶
Index ¶
- type MongoStore
- type Schedule
- func (s *Schedule) Delete(id string) error
- func (s *Schedule) Find(id string) (*mongostructures.MongoSchedule, error)
- func (s *Schedule) GetList() (map[string]string, error)
- func (s *Schedule) Make(schedule *constructor.Schedule) error
- func (s *Schedule) Rename(id string, name string) error
- func (s *Schedule) Update(id string, schedule *constructor.Schedule) error
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) Find ¶
func (s *Schedule) Find(id string) (*mongostructures.MongoSchedule, error)
Click to show internal directories.
Click to hide internal directories.