common

package
v0.0.0-...-344bb71 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Common

The common package contains the utilities used by all the other components of IcecaneDB.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortedTransactionError

type AbortedTransactionError struct {
	Message string
}

AbortedTransactionError is returned when an operation is called on an aborted txn.

func NewAbortedTransactionError

func NewAbortedTransactionError(message string) AbortedTransactionError

NewAbortedTransactionError creates a new instance of AbortedTransactionError with the given message.

func (AbortedTransactionError) Error

func (ate AbortedTransactionError) Error() string

type CommittedTransactionError

type CommittedTransactionError struct {
	Message string
}

CommittedTransactionError is returned when an operation is called on an already committed txn.

func NewCommittedTransactionError

func NewCommittedTransactionError(message string) CommittedTransactionError

NewCommittedTransactionError creates a new instance of CommittedTransactionError with the given message.

func (CommittedTransactionError) Error

func (ate CommittedTransactionError) Error() string

type NotFoundError

type NotFoundError struct {
	Message string
}

NotFoundError is returned when the required value is not found.

func NewNotFoundError

func NewNotFoundError(message string) NotFoundError

NewNotFoundError creates a new instance of NotFoundError with the given message.

func (NotFoundError) Error

func (nf NotFoundError) Error() string

type StaleLogRecordWriterError

type StaleLogRecordWriterError struct {
	Message string
}

StaleLogRecordWriterError is returned when the log record writer is in stale state.

func NewStaleLogRecordWriterError

func NewStaleLogRecordWriterError(message string) StaleLogRecordWriterError

NewStaleLogRecordWriterError creates a new instance of StaleLogRecordWriterError with the given message.

func (StaleLogRecordWriterError) Error

func (slrw StaleLogRecordWriterError) Error() string

type TransactionCommitError

type TransactionCommitError struct {
	Message string
}

TransactionCommitError is returned when a commit operation fails on a txn.

func NewTransactionCommitError

func NewTransactionCommitError(message string) TransactionCommitError

NewTransactionCommitError creates a new instance of TransactionCommitError with the given message.

func (TransactionCommitError) Error

func (ate TransactionCommitError) Error() string

type UnknownError

type UnknownError struct {
	Message string
}

UnknownError is returned when an unknown error happens.

func NewUnknownError

func NewUnknownError(message string) UnknownError

NewUnknownError creates a new instance of UnknownError with the given message.

func (UnknownError) Error

func (nf UnknownError) Error() string

Jump to

Keyboard shortcuts

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