models

package
v1.2.2-dev.14 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntervalKey     = db.Interval
	IntervalNameKey = db.Interval + ":name"
)
View Source
const (
	IntervalActionKey       = db.IntervalAction
	IntervalActionNameKey   = db.IntervalAction + ":name"
	IntervalActionParentKey = db.IntervalAction + ":parent"
	IntervalActionTargetKey = db.IntervalAction + ":target"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder interface {
	Add() []DbCommand
}

type DbCommand

type DbCommand struct {
	Command string //The actual Redis API command
	Hash    string //Indicates which hash index the command should be applied toward
	Key     string //Indicates the key that will be targeted in the given Hash
	Value   string //If applicable the value to be assigned to the key
	Rank    int64  //If applicable, the rank to be assigned to a given key
}

DbCommand is used to represent information about a specific Redis command If this strategy works, this type is called "DbCommand" in order to differentiate from the EdgeX model Command

type Interval

type Interval struct {
	contract.Interval
}

func NewInterval

func NewInterval(from contract.Interval) (i Interval)

func (Interval) Add

func (i Interval) Add() (cmds []DbCommand)

func (Interval) Remove

func (i Interval) Remove() (cmds []DbCommand)

type IntervalAction

type IntervalAction struct {
	contract.IntervalAction
}

func NewIntervalAction

func NewIntervalAction(from contract.IntervalAction) (ia IntervalAction)

func (IntervalAction) Add

func (ia IntervalAction) Add() (cmds []DbCommand)

func (IntervalAction) Remove

func (ia IntervalAction) Remove() (cmds []DbCommand)

type Remover

type Remover interface {
	Remove() []DbCommand
}

Jump to

Keyboard shortcuts

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