Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultDateFormat = "2006-01-02 15:04:05"
Variables ¶
View Source
var ErrRecordNotFound = errors.New("record not found")
Functions ¶
func ErrIsUserError ¶
func RoleFromString ¶
Types ¶
type AppSettings ¶
type DatabaseType ¶
type DatabaseType int
const ( DatabasePostgres DatabaseType = iota GoogleCloudsqlPostgres DatabaseSqlite )
type DateTime ¶
type DateTime struct {
// contains filtered or unexported fields
}
func NowDateTime ¶
func NowDateTime() DateTime
func ParseDateTime ¶
func (DateTime) MarshalJSON ¶
func (*DateTime) UnmarshalJSON ¶
type EventClient ¶
type EventClient string
const ( GcloudPubSubClient EventClient = "GcloudPubSub" AWSEventBridgeClient EventClient = "AWSEventBridgeClient" AWSSQSClient EventClient = "AWSSQSClient" )
type FieldError ¶
type RequestBodyError ¶
type RequestBodyError struct {
Message string
Errors []FieldError
}
func (*RequestBodyError) Error ¶
func (r *RequestBodyError) Error() string
type Role ¶
type Role int
func (Role) MarshalJSON ¶
MarshalJSON converts the Role to its corresponding string representation for JSON serialization.
func (*Role) UnmarshalJSON ¶
UnmarshalJSON converts a JSON string to the corresponding Role value.
type SystemError ¶
type SystemError struct {
Message string
}
func (*SystemError) Error ¶
func (s *SystemError) Error() string
Click to show internal directories.
Click to hide internal directories.