services

package
v0.0.0-...-3898045 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UntrustedJwtTokenErrorCode = 2001
	InvalidJwtTokenErrorCode   = 2002
)

Error codes

Variables

This section is empty.

Functions

func InvalidJwtTokenError

func InvalidJwtTokenError() error

InvalidJwtTokenError returns an error when service can't parse token or token is expired and etc.

func UnexpectedError

func UnexpectedError(err error, message string) error

UnexpectedError returns an error for unexpected situations

func UnexpectedErrorf

func UnexpectedErrorf(err error, format string, a ...interface{}) error

UnexpectedErrorf returns an error for unexpected situations with format

func UntrustedJwtTokenError

func UntrustedJwtTokenError() error

UntrustedJwtTokenError returns an error when service can't verify received token

Types

type Error

type Error struct {
	Err  error
	Code int
}

Error is service error structure

func (*Error) Error

func (e *Error) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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