resources

package
v0.0.0-...-7fc1af6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	ID() string
	Name() string
	Version() string
	BuiltAt() time.Time
	StartedAt() time.Time
	FQDN() string
}

Application AFAIRE.

type Bus

type Bus interface {
	AddPublisher(name string, chCapacity, consumer int) chan<- *message.Message
	Subscribe(cb func(*message.Message), reList ...string) error
}

Bus AFAIRE.

type Container

type Container interface {
	Util() Util
	Application() Application
	Logger() *logger.Logger
	Bus() Bus
	Leader() Leader
	Model() Model
	Server() Server
}

Container AFAIRE.

type Leader

type Leader interface {
	Success() bool
}

Leader AFAIRE.

type Model

type Model interface {
	AllInstances() ([]*model.Instance, error)
	PluginConfig(plugin string, config interface{}) error
	InsertJob(job *jw.Job) error
	MaybeInsertJob(job *jw.Job) (bool, error)
	InsertWorkflow(wf *jw.Workflow) error
}

Model AFAIRE.

type Server

type Server interface {
	Port() int
	Router() *mux.Router
}

Server AFAIRE.

type Util

type Util interface {
	LoggerPrefix(name, id string) string
	CloneLogger(logger *logger.Logger, prefix string) *logger.Logger
	FileExist(file string) (bool, error)
	UnixToTime(timestamp string) time.Time
	DecodeData(input, output interface{}) error
	EncryptString(text string) (string, error)
	DecryptString(text string) (string, error)
}

Util AFAIRE.

Jump to

Keyboard shortcuts

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