Documentation
¶
Overview ¶
Code generated by apic; DO NOT EDIT.
Index ¶
- type GalleryUploadReq
- type GalleryUploadResp
- type ItemCreateReq
- type ItemCreateResp
- type ItemDeleteReq
- type ItemDeleteResp
- type ItemEvent
- type ItemGetReq
- type ItemGetResp
- type ItemListReq
- type ItemListResp
- type ItemUpdateReq
- type ItemUpdateResp
- type ItemUploadReq
- type ItemUploadResp
- type TagCreateReq
- type TagCreateResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GalleryUploadReq ¶
type GalleryUploadReq struct {
Photos []*gen.FileUpload `json:"-" apic:"photos"`
Title string `json:"title" apic:"title"`
}
GalleryUploadReq generated from config schema
func (*GalleryUploadReq) HashSecrets ¶
func (x *GalleryUploadReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes GalleryUploadReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (GalleryUploadReq) Valid ¶
func (v GalleryUploadReq) Valid() error
Valid validates GalleryUploadReq fields against schema constraints.
type GalleryUploadResp ¶
type GalleryUploadResp struct {
Count int64 `json:"count" apic:"count"`
}
GalleryUploadResp generated from config schema
func (*GalleryUploadResp) HashSecrets ¶
func (x *GalleryUploadResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes GalleryUploadResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (GalleryUploadResp) Valid ¶
func (v GalleryUploadResp) Valid() error
Valid validates GalleryUploadResp fields against schema constraints.
type ItemCreateReq ¶
type ItemCreateReq struct {
Category string `json:"category" apic:"category"`
Description string `json:"description" apic:"description"`
Name string `json:"name" apic:"name"`
TagIds []string `json:"tag_ids" apic:"tag_ids"`
}
ItemCreateReq generated from config schema
func (*ItemCreateReq) HashSecrets ¶
func (x *ItemCreateReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemCreateReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemCreateReq) Valid ¶
func (v ItemCreateReq) Valid() error
Valid validates ItemCreateReq fields against schema constraints.
type ItemCreateResp ¶
type ItemCreateResp struct {
CreatedAt string `json:"created_at" apic:"created_at"`
ItemID string `json:"item_id" apic:"item_id"`
}
ItemCreateResp generated from config schema
func (*ItemCreateResp) HashSecrets ¶
func (x *ItemCreateResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemCreateResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemCreateResp) Valid ¶
func (v ItemCreateResp) Valid() error
Valid validates ItemCreateResp fields against schema constraints.
type ItemDeleteReq ¶
type ItemDeleteReq struct {
ItemID string `json:"item_id" apic:"item_id"`
}
ItemDeleteReq generated from config schema
func (*ItemDeleteReq) HashSecrets ¶
func (x *ItemDeleteReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemDeleteReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemDeleteReq) Valid ¶
func (v ItemDeleteReq) Valid() error
Valid validates ItemDeleteReq fields against schema constraints.
type ItemDeleteResp ¶
type ItemDeleteResp struct {
Deleted bool `json:"deleted" apic:"deleted"`
}
ItemDeleteResp generated from config schema
func (*ItemDeleteResp) HashSecrets ¶
func (x *ItemDeleteResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemDeleteResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemDeleteResp) Valid ¶
func (v ItemDeleteResp) Valid() error
Valid validates ItemDeleteResp fields against schema constraints.
type ItemEvent ¶
type ItemEvent struct {
EventType string `json:"event_type" apic:"event_type"`
ItemID string `json:"item_id" apic:"item_id"`
}
ItemEvent generated from config schema
func (*ItemEvent) HashSecrets ¶
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemEvent. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
type ItemGetReq ¶
type ItemGetReq struct {
ItemID string `json:"item_id" apic:"item_id"`
}
ItemGetReq generated from config schema
func (*ItemGetReq) HashSecrets ¶
func (x *ItemGetReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemGetReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemGetReq) Valid ¶
func (v ItemGetReq) Valid() error
Valid validates ItemGetReq fields against schema constraints.
type ItemGetResp ¶
type ItemGetResp struct {
Category string `json:"category" apic:"category"`
CreatedAt string `json:"created_at" apic:"created_at"`
ItemID string `json:"item_id" apic:"item_id"`
Name string `json:"name" apic:"name"`
UpdatedAt string `json:"updated_at" apic:"updated_at"`
}
ItemGetResp generated from config schema
func (*ItemGetResp) HashSecrets ¶
func (x *ItemGetResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemGetResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemGetResp) Valid ¶
func (v ItemGetResp) Valid() error
Valid validates ItemGetResp fields against schema constraints.
type ItemListReq ¶
type ItemListReq struct {
Page int64 `json:"page" apic:"page"`
PerPage int64 `json:"per_page" apic:"per_page"`
SortBy string `json:"sort_by" apic:"sort_by"`
}
ItemListReq generated from config schema
func (*ItemListReq) HashSecrets ¶
func (x *ItemListReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemListReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemListReq) Valid ¶
func (v ItemListReq) Valid() error
Valid validates ItemListReq fields against schema constraints.
type ItemListResp ¶
type ItemListResp struct {
Items []jsontext.Value `json:"items" apic:"items"`
Page int64 `json:"page" apic:"page"`
PerPage int64 `json:"per_page" apic:"per_page"`
Total int64 `json:"total" apic:"total"`
}
ItemListResp generated from config schema
func (*ItemListResp) HashSecrets ¶
func (x *ItemListResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemListResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemListResp) Valid ¶
func (v ItemListResp) Valid() error
Valid validates ItemListResp fields against schema constraints.
type ItemUpdateReq ¶
type ItemUpdateReq struct {
Category string `json:"category" apic:"category"`
Description string `json:"description" apic:"description"`
ItemID string `json:"item_id" apic:"item_id"`
Name string `json:"name" apic:"name"`
}
ItemUpdateReq generated from config schema
func (*ItemUpdateReq) HashSecrets ¶
func (x *ItemUpdateReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemUpdateReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemUpdateReq) Valid ¶
func (v ItemUpdateReq) Valid() error
Valid validates ItemUpdateReq fields against schema constraints.
type ItemUpdateResp ¶
type ItemUpdateResp struct {
Updated bool `json:"updated" apic:"updated"`
UpdatedAt string `json:"updated_at" apic:"updated_at"`
}
ItemUpdateResp generated from config schema
func (*ItemUpdateResp) HashSecrets ¶
func (x *ItemUpdateResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemUpdateResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemUpdateResp) Valid ¶
func (v ItemUpdateResp) Valid() error
Valid validates ItemUpdateResp fields against schema constraints.
type ItemUploadReq ¶
type ItemUploadReq struct {
Caption string `json:"caption" apic:"caption"`
File *gen.FileUpload `json:"-" apic:"file"`
ItemID string `json:"item_id" apic:"item_id"`
}
ItemUploadReq generated from config schema
func (*ItemUploadReq) HashSecrets ¶
func (x *ItemUploadReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemUploadReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemUploadReq) Valid ¶
func (v ItemUploadReq) Valid() error
Valid validates ItemUploadReq fields against schema constraints.
type ItemUploadResp ¶
type ItemUploadResp struct {
URL string `json:"url" apic:"url"`
}
ItemUploadResp generated from config schema
func (*ItemUploadResp) HashSecrets ¶
func (x *ItemUploadResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes ItemUploadResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (ItemUploadResp) Valid ¶
func (v ItemUploadResp) Valid() error
Valid validates ItemUploadResp fields against schema constraints.
type TagCreateReq ¶
type TagCreateReq struct {
Color string `json:"color" apic:"color"`
ItemID string `json:"item_id" apic:"item_id"`
Name string `json:"name" apic:"name"`
}
TagCreateReq generated from config schema
func (*TagCreateReq) HashSecrets ¶
func (x *TagCreateReq) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes TagCreateReq. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (TagCreateReq) Valid ¶
func (v TagCreateReq) Valid() error
Valid validates TagCreateReq fields against schema constraints.
type TagCreateResp ¶
type TagCreateResp struct {
TagID string `json:"tag_id" apic:"tag_id"`
}
TagCreateResp generated from config schema
func (*TagCreateResp) HashSecrets ¶
func (x *TagCreateResp) HashSecrets(ctx context.Context) error
HashSecrets one-way hashes all hash-marked fields in place. It MUST run after Valid() and before any handler/resolver observes TagCreateResp. After it returns nil, no plaintext secret remains in the receiver. When the struct has no hash-marked fields the body is a no-op so every binding seam can call it uniformly. Generated — do not edit.
func (TagCreateResp) Valid ¶
func (v TagCreateResp) Valid() error
Valid validates TagCreateResp fields against schema constraints.