Documentation ¶
Index ¶
- func AuthorizationInfo(ctx context.Context) jwt.MapClaims
- func Database(ctx context.Context) *durable.Database
- func RemoteAddress(ctx context.Context) string
- func Render(ctx context.Context) *render.Render
- func Request(ctx context.Context) *http.Request
- func RequestBody(ctx context.Context) string
- func WithAuthorizationInfo(ctx context.Context, tokenString string) context.Context
- func WithDatabase(ctx context.Context, database *durable.Database) context.Context
- func WithRemoteAddress(ctx context.Context, remoteAddr string) context.Context
- func WithRender(ctx context.Context, render *render.Render) context.Context
- func WithRequest(ctx context.Context, r *http.Request) context.Context
- func WithRequestBody(ctx context.Context, body string) context.Context
- type Error
- func AuthorizationError(ctx context.Context) Error
- func BadDataError(ctx context.Context) Error
- func BadRequestError(ctx context.Context) Error
- func BlazeServerError(ctx context.Context, err error) Error
- func BlazeTimeoutError(ctx context.Context, err error) Error
- func ForbiddenError(ctx context.Context) Error
- func InsufficientAccountBalanceError(ctx context.Context) Error
- func NotFoundError(ctx context.Context) Error
- func ParseError(err string) (Error, bool)
- func ServerError(ctx context.Context, err error) Error
- func TooManyRequestsError(ctx context.Context) Error
- func TransactionError(ctx context.Context, err error) Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoteAddress ¶
func RequestBody ¶
func WithAuthorizationInfo ¶
func WithDatabase ¶
func WithRemoteAddress ¶
Types ¶
type Error ¶
type Error struct { Status int `json:"status"` Code int `json:"code"` Description string `json:"description"` // contains filtered or unexported fields }
func AuthorizationError ¶
func BadDataError ¶
func BadRequestError ¶
func ForbiddenError ¶
func NotFoundError ¶
func ParseError ¶
func TooManyRequestsError ¶
Click to show internal directories.
Click to hide internal directories.