Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // So we can terminates the communication when the program ends io.Closer // Check takes a key (string) and value (interface{}) and stores it in the database. // If an error occurred this will be returned. Check(ctx context.Context, done chan<- APIResp, url string) }
API is an interface that defines the actions a database should be able to execute.
type CreateAPIError ¶
type CreateAPIError struct {
// contains filtered or unexported fields
}
CreateAPIError contains a reason as to why the api couldn't be created.
func (*CreateAPIError) Error ¶
func (err *CreateAPIError) Error() string
type NotImplementedAPIError ¶
type NotImplementedAPIError struct {
// contains filtered or unexported fields
}
NotImplementedAPIError is an error returned when this api mode does not exist.
func (*NotImplementedAPIError) Error ¶
func (err *NotImplementedAPIError) Error() string
type OperationError ¶
type OperationError struct {
// contains filtered or unexported fields
}
OperationError indicates the operation could not be performed.
func (*OperationError) Error ¶
func (err *OperationError) Error() string
Click to show internal directories.
Click to hide internal directories.