gateway

package
v0.0.0-...-2d539fd Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthError

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

func NewAuthError

func NewAuthError(err error) *AuthError

func (*AuthError) Handle

func (e *AuthError) Handle(c *client.Client) error

type BaseError

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

func NewError

func NewError(code ErrorCode, err error) *BaseError

func (*BaseError) Handle

func (e *BaseError) Handle(c *client.Client) error

type Error

type Error interface {
	Handle(c *client.Client) error
}

type ErrorCode

type ErrorCode int
const (
	ErrorDatabase ErrorCode = 100 + iota
	ErrorRedis
	ErrorClientSend
	ErrorDispatch
	ErrorNextItem
	ErrorSetCurrentItem
	ErrorSendState
	ErrorCrawler
	ErrorAddClient
	ErrorRemoveClient
	ErrorParse
	ErrorSerialize
)

Jump to

Keyboard shortcuts

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