Documentation ¶
Index ¶
- func AuthorizationInfo(ctx context.Context) jwt.MapClaims
- func Database(ctx context.Context) *durable.Database
- func Go(f func(), c context.Context)
- func Limiter(ctx context.Context) *durable.Limiter
- func Logger(ctx context.Context) *durable.Logger
- 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 WithLimiter(ctx context.Context, limiter *durable.Limiter) context.Context
- func WithLogger(ctx context.Context, logger *durable.Logger) 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 EmailInvalidFormatError(ctx context.Context, email string) Error
- func EmailSMSDeliveryError(ctx context.Context, email string, err error) Error
- func ForbiddenError(ctx context.Context) Error
- func InsufficientKeyPoolError(ctx context.Context) Error
- func MixinNotConnectedError(ctx context.Context) Error
- func NotFoundError(ctx context.Context) Error
- func ParseError(err string) (Error, bool)
- func PasswordTooSimpleError(ctx context.Context) Error
- func PhoneInvalidFormatError(ctx context.Context, phone string) Error
- func PhoneSMSDeliveryError(ctx context.Context, phone string, err error) Error
- func RecaptchaRequiredError(ctx context.Context) Error
- func RecaptchaVerifyError(ctx context.Context) Error
- func ServerError(ctx context.Context, err error) Error
- func TooManyRequestsError(ctx context.Context) Error
- func TransactionError(ctx context.Context, err error) Error
- func VerificationCodeExpiredError(ctx context.Context) Error
- func VerificationCodeInvalidError(ctx context.Context) 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 EmailInvalidFormatError ¶
func EmailSMSDeliveryError ¶
func ForbiddenError ¶
func MixinNotConnectedError ¶
func NotFoundError ¶
func ParseError ¶
func PasswordTooSimpleError ¶
func PhoneInvalidFormatError ¶
func PhoneSMSDeliveryError ¶
func RecaptchaRequiredError ¶
func RecaptchaVerifyError ¶
func TooManyRequestsError ¶
Click to show internal directories.
Click to hide internal directories.