meta

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrTimerNotFoundf     string = "timer with id, \"%s\" not found"
	ErrTimeSliceNotFoundf string = "timeSlice with id, \"%s\" not found"
)

error constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Owner

type Owner interface {
	Shutdown() (err error)
}

type SerializedData

type SerializedData struct {
	Timers     map[string]data.Timer     `json:"Timers"`
	TimeSlices map[string]data.TimeSlice `json:"TimeSlices"`
}

SerializedData provides a struct that describes the representation of the data when serialized

type Serializer

type Serializer interface {
	SerializedDataRead() SerializedData
	SerializedDataWrite(SerializedData)
}

type TimeSlice

type TimeSlice interface {
	//MetaTimerWrite
	TimeSliceWrite(timeSliceID string, timeSlice data.TimeSlice) (err error)

	//MetaTimerDelete
	TimeSliceDelete(timeSliceID string) (err error)

	//MetaTimerRead
	TimeSliceRead(timeSliceID string) (timeSlice data.TimeSlice, err error)
}

MetaTimeSlice

type Timer

type Timer interface {
	//MetaTimerWrite
	TimerWrite(timerID string, timer data.Timer) (err error)

	//MetaTimerDelete
	TimerDelete(timerID string) (err error)

	//MetaTimerRead
	TimerRead(timerID string) (timer data.Timer, err error)
}

MetaTimer

type Type

type Type string
const (
	TypeInvalid Type = "invalid"
	TypeFile    Type = "file"
	TypeMySQL   Type = "mysql"
)

task states

func AtoType

func AtoType(s string) Type

func (Type) String

func (m Type) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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