error

package
v0.0.0-...-233725d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadAddress       = errors.New("bad address")
	ErrNoAvailableShard = errors.New("no available shard")
)

Functions

This section is empty.

Types

type NoShardError

type NoShardError struct {
	// contains filtered or unexported fields
}

func NewNoShardError

func NewNoShardError(uuid string) *NoShardError

func (*NoShardError) Error

func (e *NoShardError) Error() string

type NotLeaderError

type NotLeaderError struct {
	Leader string
}

func NewNotLeaderError

func NewNotLeaderError(l string) *NotLeaderError

func (*NotLeaderError) Error

func (e *NotLeaderError) Error() string

type ShardExistsError

type ShardExistsError struct {
	// contains filtered or unexported fields
}

func NewShardExistsError

func NewShardExistsError(uuid string) *ShardExistsError

func (*ShardExistsError) Error

func (e *ShardExistsError) Error() string

type ShardsExistError

type ShardsExistError struct {
	// contains filtered or unexported fields
}

func NewShardsExistError

func NewShardsExistError(uuids []string) *ShardsExistError

func (*ShardsExistError) Error

func (e *ShardsExistError) Error() string

Jump to

Keyboard shortcuts

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