views

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CreatequeueresponseMap is a map indexing the attribute names of
	// Createqueueresponse by view name.
	CreatequeueresponseMap = map[string][]string{
		"default": {
			"id",
			"name",
			"description",
			"created-at",
			"account",
		},
	}
	// ReadqueueresponseMap is a map indexing the attribute names of
	// Readqueueresponse by view name.
	ReadqueueresponseMap = map[string][]string{
		"default": {
			"name",
			"description",
			"total-messages",
			"bytes",
			"first-seq",
			"first-time",
			"last-seq",
			"last-time",
			"consumer-count",
			"created-at",
		},
	}
)

Functions

func ValidateCreatequeueresponse

func ValidateCreatequeueresponse(result *Createqueueresponse) (err error)

ValidateCreatequeueresponse runs the validations defined on the viewed result type Createqueueresponse.

func ValidateCreatequeueresponseView

func ValidateCreatequeueresponseView(result *CreatequeueresponseView) (err error)

ValidateCreatequeueresponseView runs the validations defined on CreatequeueresponseView using the "default" view.

func ValidateReadqueueresponse

func ValidateReadqueueresponse(result *Readqueueresponse) (err error)

ValidateReadqueueresponse runs the validations defined on the viewed result type Readqueueresponse.

func ValidateReadqueueresponseView

func ValidateReadqueueresponseView(result *ReadqueueresponseView) (err error)

ValidateReadqueueresponseView runs the validations defined on ReadqueueresponseView using the "default" view.

Types

type Createqueueresponse

type Createqueueresponse struct {
	// Type to project
	Projected *CreatequeueresponseView
	// View to render
	View string
}

Createqueueresponse is the viewed result type that is projected based on a view.

type CreatequeueresponseView

type CreatequeueresponseView struct {
	// queue
	ID *string
	// Name of the created queue.
	Name *string
	// Description of the created queue.
	Description *string
	// Timestamp when the queue was created
	CreatedAt *string
	// Reference to billable account
	Account *string `json:"account"`
}

CreatequeueresponseView is a type that runs validations on a projected type.

type Readqueueresponse

type Readqueueresponse struct {
	// Type to project
	Projected *ReadqueueresponseView
	// View to render
	View string
}

Readqueueresponse is the viewed result type that is projected based on a view.

type ReadqueueresponseView

type ReadqueueresponseView struct {
	// Name of the queue.
	Name *string
	// Description of the queue.
	Description *string
	// Number of messages sent to the queue
	TotalMessages *uint64
	// Number of bytes in the queue
	Bytes *uint64
	// First sequence in the queue
	FirstSeq *uint64
	// Timestamp of the first message in the queue
	FirstTime *string
	// Last sequence in the queue
	LastSeq *uint64
	// Timestamp of the last message in the queue
	LastTime *string
	// Number of consumers
	ConsumerCount *int
	// Timestamp when the queue was created
	CreatedAt *string
}

ReadqueueresponseView is a type that runs validations on a projected type.

Jump to

Keyboard shortcuts

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