components

package
v4.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 ActionWithInvalidLength() (string, error)

func CommandWithInvalidAlpha

func CommandWithInvalidAlpha() (string, error)

func CommandWithInvalidLength

func CommandWithInvalidLength() (string, error)

func EntityWithInvalidAlpha

func EntityWithInvalidAlpha() (string, error)

func EntityWithInvalidLength

func EntityWithInvalidLength() (string, error)

func EventWithInvalidAlpha

func EventWithInvalidAlpha() (string, error)

func EventWithInvalidLength

func EventWithInvalidLength() (string, error)

func OrganizationWithInvalidAlphanumeric

func OrganizationWithInvalidAlphanumeric() (string, error)

func OrganizationWithInvalidLength

func OrganizationWithInvalidLength() (string, error)

func QueryWithInvalidAlpha added in v4.8.0

func QueryWithInvalidAlpha() (string, error)

func QueryWithInvalidLength added in v4.8.0

func QueryWithInvalidLength() (string, error)

func ResponseWithInvalidAlpha added in v4.8.0

func ResponseWithInvalidAlpha() (string, error)

func ResponseWithInvalidLength added in v4.8.0

func ResponseWithInvalidLength() (string, error)

func ServiceWithInvalidAlphanumeric

func ServiceWithInvalidAlphanumeric() (string, error)

func ServiceWithInvalidLength

func ServiceWithInvalidLength() (string, error)

func StatusWithInvalidValue

func StatusWithInvalidValue() (string, error)

func TypeWithInvalidValue

func TypeWithInvalidValue() (string, error)

func VersionWithInvalidValue

func VersionWithInvalidValue() (string, error)

Types

type Action

type Action struct {
	Value string `validate:"gte=1,lte=20"`
}

func ActionWithValidValue

func ActionWithValidValue() *Action

func NewAction

func NewAction(value string) (*Action, error)

type Command

type Command struct {
	Value string `validate:"gte=1,lte=20,alpha"`
}

func CommandWithValidValue

func CommandWithValidValue() *Command

func NewCommand

func NewCommand(value string) (*Command, error)

type Entity

type Entity struct {
	Value string `validate:"gte=1,lte=20,alpha"`
}

func EntityWithValidValue

func EntityWithValidValue() *Entity

func NewEntity

func NewEntity(value string) (*Entity, error)

type Event

type Event struct {
	Value string `validate:"gte=1,lte=20,alpha"`
}

func EventWithValidValue

func EventWithValidValue() *Event

func NewEvent

func NewEvent(value string) (*Event, error)

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 NewQuery added in v4.8.0

func NewQuery(value string) (*Query, error)

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 NewResponse(value string) (*Response, error)

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 NewService(value string) (*Service, error)

func ServiceWithValidValue

func ServiceWithValidValue() *Service

type Status

type Status struct {
	Value string `validate:"oneof=queued succeeded failed done"`
}

func NewStatus

func NewStatus(value string) (*Status, error)

func StatusWithValidValue

func StatusWithValidValue() *Status

type Type

type Type struct {
	Value string `validate:"oneof=event command query response"`
}

func NewType

func NewType(value string) (*Type, error)

func TypeWithValidValue

func TypeWithValidValue() *Type

type Version

type Version struct {
	Value string `validate:"number"`
}

func NewVersion

func NewVersion(value string) (*Version, error)

func VersionWithValidValue

func VersionWithValidValue() *Version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL