synctypes

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Idle ...
	Idle statusEnum = iota
	// Sync ...
	Sync
)
View Source
const (
	// Imported ...
	Imported eventEnum = iota
)

Variables

View Source
var ErrUnknownEvent = errors.New("sync event: unknown")

ErrUnknownEvent is thrown when an unknown sync event is encountered.

View Source
var ErrUnknownStatus = errors.New("sync status: unknown")

ErrUnknownStatus is thrown when an unknown sync status is encountered.

Functions

This section is empty.

Types

type EventEnum

type EventEnum interface {
	Type() eventEnum
	String() string
}

EventEnum are the exported sync events

func AllEventEnums

func AllEventEnums() []EventEnum

AllEventEnums returns all of the sync events

func EventEnumFromString

func EventEnumFromString(s string) (EventEnum, error)

EventEnumFromString parses a string to return the sync event

type StatusEnum

type StatusEnum interface {
	Type() statusEnum
	String() string
}

StatusEnum are the available sync statuses of the node

func AllStatusEnums

func AllStatusEnums() []StatusEnum

AllStatusEnums returns all of the sync statuses

func StatusEnumFromString

func StatusEnumFromString(s string) (StatusEnum, error)

StatusEnumFromString parses a string to return the sync status

Jump to

Keyboard shortcuts

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