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 QueryWithInvalidAlpha() (string, error)
- func QueryWithInvalidLength() (string, error)
- func ResponseWithInvalidAlpha() (string, error)
- func ResponseWithInvalidLength() (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 Query
- type Response
- 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 ( QueryMinCharactersLength = "1" QueryMaxCharactersLength = "20" )
View Source
const ( ResponseMinCharactersLength = "1" ResponseMaxCharactersLength = "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", "Query", "Response"}
)
Functions ¶
func ActionWithInvalidLength ¶
func CommandWithInvalidAlpha ¶
func EntityWithInvalidAlpha ¶
func EntityWithInvalidLength ¶
func EventWithInvalidAlpha ¶
func EventWithInvalidLength ¶
func QueryWithInvalidAlpha ¶ added in v4.8.0
func QueryWithInvalidLength ¶ added in v4.8.0
func ResponseWithInvalidAlpha ¶ added in v4.8.0
func ResponseWithInvalidLength ¶ added in v4.8.0
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 Query ¶ added in v4.8.0
type Query struct {
Value string `validate:"gte=1,lte=20,alpha"`
}
func QueryWithValidValue ¶ added in v4.8.0
func QueryWithValidValue() *Query
type Response ¶ added in v4.8.0
type Response struct {
Value string `validate:"gte=1,lte=20,alpha"`
}
func NewResponse ¶ added in v4.8.0
func ResponseWithValidValue ¶ added in v4.8.0
func ResponseWithValidValue() *Response
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
Source Files ¶
- action.go
- action.mother.go
- command.go
- command.mother.go
- entity.go
- entity.mother.go
- event.go
- event.mother.go
- organization.go
- organization.mother.go
- query.go
- query.mother.go
- response.go
- response.mother.go
- service.go
- service.mother.go
- status.go
- status.mother.go
- type.go
- type.mother.go
- version.go
- version.mother.go
Click to show internal directories.
Click to hide internal directories.