Documentation ¶
Index ¶
- Constants
- Variables
- func ActionWithInvalidLength() (string, error)
- func CommandWithInvalidAlpha() (string, error)
- func CommandWithInvalidLength() (string, error)
- func EntityWithInvalidAlpha() (string, error)
- func EntityWithInvalidLength() (string, error)
- func EventWithInvalidAlpha() (string, error)
- func EventWithInvalidLength() (string, error)
- func OrganizationWithInvalidAlphanumeric() (string, error)
- func OrganizationWithInvalidLength() (string, error)
- func ServiceWithInvalidAlphanumeric() (string, error)
- func ServiceWithInvalidLength() (string, error)
- func StatusWithInvalidValue() (string, error)
- func TypeWithInvalidValue() (string, error)
- func VersionWithInvalidValue() (string, error)
- type Action
- type Command
- type Entity
- type Event
- type Organization
- type Service
- type Status
- type Type
- type Version
Constants ¶
View Source
const ( ActionMinCharactersLength = "1" ActionMaxCharactersLength = "20" )
View Source
const ( CommandMinCharactersLength = "1" CommandMaxCharactersLength = "20" )
View Source
const ( EntityMinCharactersLength = "1" EntityMaxCharactersLength = "20" )
View Source
const ( EventMinCharactersLength = "1" EventMaxCharactersLength = "20" )
View Source
const ( OrganizationMinCharactersLength = "1" OrganizationMaxCharactersLength = "20" )
View Source
const ( ServiceMinCharactersLength = "1" ServiceMaxCharactersLength = "20" )
Variables ¶
View Source
var (
StatusOneOf = []string{"Queued", "Succeeded", "Failed", "Done"}
)
View Source
var (
TypeOneOf = []string{"Event", "Command"}
)
Functions ¶
func ActionWithInvalidLength ¶
func CommandWithInvalidAlpha ¶
func EntityWithInvalidAlpha ¶
func EntityWithInvalidLength ¶
func EventWithInvalidAlpha ¶
func EventWithInvalidLength ¶
func StatusWithInvalidValue ¶
func TypeWithInvalidValue ¶
func VersionWithInvalidValue ¶
Types ¶
type Action ¶
type Action struct {
Value string `validate:"gte=1,lte=20"`
}
func ActionWithValidValue ¶
func ActionWithValidValue() *Action
type Command ¶
type Command struct {
Value string `validate:"gte=1,lte=20,alpha"`
}
func CommandWithValidValue ¶
func CommandWithValidValue() *Command
func NewCommand ¶
type Entity ¶
type Entity struct {
Value string `validate:"gte=1,lte=20,alpha"`
}
func EntityWithValidValue ¶
func EntityWithValidValue() *Entity
type Event ¶
type Event struct {
Value string `validate:"gte=1,lte=20,alpha"`
}
func EventWithValidValue ¶
func EventWithValidValue() *Event
type Organization ¶
type Organization struct {
Value string `validate:"gte=1,lte=20,alphanum"`
}
func NewOrganization ¶
func NewOrganization(value string) (*Organization, error)
func OrganizationWithValidValue ¶
func OrganizationWithValidValue() *Organization
type Service ¶
type Service struct {
Value string `validate:"gte=1,lte=20,alphanum"`
}
func NewService ¶
func ServiceWithValidValue ¶
func ServiceWithValidValue() *Service
type Status ¶
type Status struct {
Value string `validate:"oneof=queued succeeded failed done"`
}
func StatusWithValidValue ¶
func StatusWithValidValue() *Status
Click to show internal directories.
Click to hide internal directories.