model

package
v0.0.0-...-a4eaa21 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalTask

type CalTask struct {
	Id          string    `bson:"_id"`
	ProcessorId string    `bson:"processor_id"`
	Key         string    `bson:"key"`
	Data        any       `bson:"data"`
	EvenTime    time.Time `bson:"even_time"`
}

type Evictor

type Evictor struct {
	Id   string `bson:"_id"`
	Type int32  `bson:"type"`
}

func (*Evictor) Information

func (e *Evictor) Information() string

type Operator

type Operator struct {
	Id       string `bson:"_id"`
	Type     int32  `bson:"type"`
	DataType int32  `bson:"data_type"`
}

func (*Operator) Information

func (o *Operator) Information() string

type Resource

type Resource interface {
	*CalTask | *Evictor | *Operator | *Trigger | *Window
}

type Trigger

type Trigger struct {
	Id     string `bson:"_id"`
	Type   int32  `bson:"type"`
	Count  int32  `bson:"count"`
	Period int32  `bson:"period"`
}

func (*Trigger) Information

func (t *Trigger) Information() string

type Window

type Window struct {
	Id     string          `bson:"_id"`
	Type   core.WindowType `bson:"type"`
	Size   int32           `bson:"size"`
	Period int32           `bson:"period"`
	Gap    int32           `bson:"gap"`
}

func (*Window) Information

func (w *Window) Information() string

Jump to

Keyboard shortcuts

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