Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPermissionDenied = errors.New("permission denied") ErrNotFound = errors.New("entity not found") ErrIdemKeyParamsMismatch = errors.New("params mismatch") ErrIdemKeyRequestInProgress = errors.New("request in progress") ErrIdemKeyUnknownRecoveryPoint = errors.New("unknown recovery point") ErrPaymentProvider = errors.New("card error from payment processor") ErrPaymentProviderGeneric = errors.New("generic error from payment processor") ErrInternalError = errors.New("internal error") )
Functions ¶
This section is empty.
Types ¶
type AuditRecord ¶
type IdempotencyKey ¶
type IdempotencyKey struct { ID int64 CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp"` IdempotencyKey string LastRunAt time.Time LockedAt *time.Time RequestMethod string RequestParams json.RawMessage RequestPath string ResponseCode *idempotency.ResponseCode ResponseBody *idempotency.ResponseBody RecoveryPoint idempotency.RecoveryPoint UserID int64 User *User `json:"-" bun:"-"` }
type Ride ¶
type Ride struct { ID int64 CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp"` IdempotencyKeyID *int64 OriginLat float64 `json:"origin_lat"` OriginLon float64 `json:"origin_lon"` TargetLat float64 `json:"target_lat"` TargetLon float64 `json:"target_lon"` StripeChargeID *string UserID int64 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.