model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PointInt64

func PointInt64(v int64) *int64

Types

type HttpJob

type HttpJob struct {
	Url     string                 `bson:"url"`
	Headers map[string]string      `bson:"headers"`
	Body    map[string]interface{} `bson:"body"`
}

type Job

type Job struct {
	Spec   string                 `bson:"spec"`
	Mode   string                 `bson:"mode"`
	Option map[string]interface{} `bson:"option"`
}

type Schedule

type Schedule struct {
	ID   primitive.ObjectID `bson:"_id,omitempty"`
	Key  string             `bson:"key"`
	Node string             `bson:"node"`
	Jobs []Job              `bson:"jobs"`
}

Jump to

Keyboard shortcuts

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