infra

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: AGPL-3.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACK

type ACK struct {
	ID ulid.ID
}

ACK represents an validated packet ID

type Core

type Core struct {
	ID ulid.ID
}

Core represents a core running machine.

type CoreMapper

type CoreMapper interface {
	GetRandomCore(CoreSubset) (Core, error)
	SetCore(Core) error
	DelCore(CoreSubset) error
}

CoreMapper maps core data interactions.

type CoreSubset

type CoreSubset struct {
	ID ulid.ID
}

CoreSubset retrieves a randomly assigned core.

type Sync

type Sync struct {
	ID ulid.ID
}

Sync represents a core running machine.

type SyncMapper

type SyncMapper interface {
	GetRandomSync(SyncSubset) (Sync, error)
	SetSync(Sync) error
	DelSync(SyncSubset) error
}

SyncMapper maps sync data interactions.

type SyncSubset

type SyncSubset struct {
	ID ulid.ID
}

SyncSubset retrieves a randomly assigned core.

Jump to

Keyboard shortcuts

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