Documentation ¶
Index ¶
- func AssertClientSideError(t *testing.T, err error)
- func AssertValidationError(t *testing.T, err error)
- func ClearTestDB(ctx context.Context, t *testing.T)
- func ClearTestRedis(ctx context.Context)
- func GetTestAccountsCollection() *mongo.Collection
- func GetTestDBClient() *mongo.Client
- func GetTestRedisClient() *redis.Client
- func GetTestSessionsCollection() *mongo.Collection
- func NewClientSideError(title string) error
- func NewServerSideError(title string) error
- func NewTooManyRequestsError(title string) error
- func NewValidationError(title string, errors []string) error
- func RandomIntegerSecure(inclusiveStart, inclusiveEnd int) (int, error)
- func ReverseString(s string) string
- type ClientSideError
- type ServerSideError
- type TooManyRequestsError
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertClientSideError ¶
func AssertValidationError ¶
func ClearTestRedis ¶
func GetTestAccountsCollection ¶
func GetTestAccountsCollection() *mongo.Collection
func GetTestDBClient ¶
func GetTestRedisClient ¶
func GetTestRedisClient() *redis.Client
func GetTestSessionsCollection ¶
func GetTestSessionsCollection() *mongo.Collection
func NewClientSideError ¶
func NewServerSideError ¶
func NewTooManyRequestsError ¶
func NewValidationError ¶
func RandomIntegerSecure ¶
RandomIntegerSecure the returnable range is [inclusiveStart;inclusiveEnd]
func ReverseString ¶
Types ¶
type ClientSideError ¶
type ClientSideError struct {
Title string `json:"title"`
}
func (*ClientSideError) Error ¶
func (cse *ClientSideError) Error() string
func (*ClientSideError) Is ¶
func (cse *ClientSideError) Is(tgt error) bool
type ServerSideError ¶
type ServerSideError struct {
Title string `json:"title"`
}
func (*ServerSideError) Error ¶
func (sse *ServerSideError) Error() string
type TooManyRequestsError ¶
type TooManyRequestsError struct {
Title string `json:"title"`
}
func (*TooManyRequestsError) Error ¶
func (tmre *TooManyRequestsError) Error() string
type ValidationError ¶
func (*ValidationError) Error ¶
func (ve *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.