types

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by apic; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminActionReq

type AdminActionReq struct {
	Action     string `json:"action" apic:"action"`
	Reason     string `json:"reason" apic:"reason"`
	ResourceID string `json:"resource_id" apic:"resource_id"`
}

AdminActionReq generated from config schema

func (*AdminActionReq) HashSecrets

func (x *AdminActionReq) 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 AdminActionReq. 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 (AdminActionReq) Valid

func (v AdminActionReq) Valid() error

Valid validates AdminActionReq fields against schema constraints.

type AdminActionResp

type AdminActionResp struct {
	AffectedCount int64 `json:"affected_count" apic:"affected_count"`
	Success       bool  `json:"success" apic:"success"`
}

AdminActionResp generated from config schema

func (*AdminActionResp) HashSecrets

func (x *AdminActionResp) 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 AdminActionResp. 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 (AdminActionResp) Valid

func (v AdminActionResp) Valid() error

Valid validates AdminActionResp fields against schema constraints.

type AdminMetricsReq

type AdminMetricsReq struct {
	Threshold     float64 `json:"threshold" apic:"threshold"`
	WindowMinutes int64   `json:"window_minutes" apic:"window_minutes"`
}

AdminMetricsReq generated from config schema

func (*AdminMetricsReq) HashSecrets

func (x *AdminMetricsReq) 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 AdminMetricsReq. 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 (AdminMetricsReq) Valid

func (v AdminMetricsReq) Valid() error

Valid validates AdminMetricsReq fields against schema constraints.

type AdminMetricsResp

type AdminMetricsResp struct {
	Breakdowns   []jsontext.Value `json:"breakdowns" apic:"breakdowns"`
	ErrorRate    float64          `json:"error_rate" apic:"error_rate"`
	RequestCount int64            `json:"request_count" apic:"request_count"`
}

AdminMetricsResp generated from config schema

func (*AdminMetricsResp) HashSecrets

func (x *AdminMetricsResp) 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 AdminMetricsResp. 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 (AdminMetricsResp) Valid

func (v AdminMetricsResp) Valid() error

Valid validates AdminMetricsResp fields against schema constraints.

type BinaryMsg

type BinaryMsg struct {
	Content string `json:"content" apic:"content"`
}

BinaryMsg generated from config schema

func (*BinaryMsg) HashSecrets

func (x *BinaryMsg) 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 BinaryMsg. 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 (BinaryMsg) Valid

func (v BinaryMsg) Valid() error

Valid validates BinaryMsg fields against schema constraints.

type FeedMsg

type FeedMsg struct {
	Actor      string `json:"actor" apic:"actor"`
	EventType  string `json:"event_type" apic:"event_type"`
	ResourceID string `json:"resource_id" apic:"resource_id"`
}

FeedMsg generated from config schema

func (*FeedMsg) HashSecrets

func (x *FeedMsg) 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 FeedMsg. 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 (FeedMsg) Valid

func (v FeedMsg) Valid() error

Valid validates FeedMsg fields against schema constraints.

type PostCreateReq

type PostCreateReq struct {
	Body          string         `json:"body" apic:"body"`
	Category      string         `json:"category" apic:"category"`
	Metadata      jsontext.Value `json:"metadata" apic:"metadata"`
	Priority      int64          `json:"priority" apic:"priority"`
	ProjectNumber string         `json:"projectNumber" apic:"projectNumber"`
	Title         string         `json:"title" apic:"title"`
}

PostCreateReq generated from config schema

func (*PostCreateReq) HashSecrets

func (x *PostCreateReq) 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 PostCreateReq. 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 (PostCreateReq) Valid

func (v PostCreateReq) Valid() error

Valid validates PostCreateReq fields against schema constraints.

type PostCreateResp

type PostCreateResp struct {
	PostID        string `json:"post_id" apic:"post_id"`
	ProjectNumber string `json:"projectNumber" apic:"projectNumber"`
	Slug          string `json:"slug" apic:"slug"`
}

PostCreateResp generated from config schema

func (*PostCreateResp) HashSecrets

func (x *PostCreateResp) 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 PostCreateResp. 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 (PostCreateResp) Valid

func (v PostCreateResp) Valid() error

Valid validates PostCreateResp fields against schema constraints.

type PostSearchReq

type PostSearchReq struct {
	Category string   `json:"category" apic:"category"`
	MinScore *float64 `json:"min_score,omitempty" apic:"min_score"`
	Page     int64    `json:"page" apic:"page"`
	Query    string   `json:"query" apic:"query"`
}

PostSearchReq generated from config schema

func (*PostSearchReq) HashSecrets

func (x *PostSearchReq) 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 PostSearchReq. 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 (PostSearchReq) Valid

func (v PostSearchReq) Valid() error

Valid validates PostSearchReq fields against schema constraints.

type PostSearchResp

type PostSearchResp struct {
	Page    int64            `json:"page" apic:"page"`
	Results []jsontext.Value `json:"results" apic:"results"`
	Total   int64            `json:"total" apic:"total"`
}

PostSearchResp generated from config schema

func (*PostSearchResp) HashSecrets

func (x *PostSearchResp) 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 PostSearchResp. 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 (PostSearchResp) Valid

func (v PostSearchResp) Valid() error

Valid validates PostSearchResp fields against schema constraints.

type RegisterReq

type RegisterReq struct {
	Age      int64  `json:"age" apic:"age"`
	Email    string `json:"email" apic:"email"`
	Username string `json:"username" apic:"username"`
}

RegisterReq generated from config schema

func (*RegisterReq) HashSecrets

func (x *RegisterReq) 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 RegisterReq. 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 (RegisterReq) Valid

func (v RegisterReq) Valid() error

Valid validates RegisterReq fields against schema constraints.

type RegisterResp

type RegisterResp struct {
	CreatedAt string `json:"created_at" apic:"created_at"`
	UserID    string `json:"user_id" apic:"user_id"`
}

RegisterResp generated from config schema

func (*RegisterResp) HashSecrets

func (x *RegisterResp) 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 RegisterResp. 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 (RegisterResp) Valid

func (v RegisterResp) Valid() error

Valid validates RegisterResp fields against schema constraints.

type UserUpdateReq

type UserUpdateReq struct {
	DisplayName string  `json:"display_name" apic:"display_name"`
	Score       float64 `json:"score" apic:"score"`
	Status      string  `json:"status" apic:"status"`
}

UserUpdateReq generated from config schema

func (*UserUpdateReq) HashSecrets

func (x *UserUpdateReq) 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 UserUpdateReq. 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 (UserUpdateReq) Valid

func (v UserUpdateReq) Valid() error

Valid validates UserUpdateReq fields against schema constraints.

type UserUpdateResp

type UserUpdateResp struct {
	DisplayName string `json:"display_name" apic:"display_name"`
	Updated     bool   `json:"updated" apic:"updated"`
}

UserUpdateResp generated from config schema

func (*UserUpdateResp) HashSecrets

func (x *UserUpdateResp) 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 UserUpdateResp. 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 (UserUpdateResp) Valid

func (v UserUpdateResp) Valid() error

Valid validates UserUpdateResp fields against schema constraints.

Jump to

Keyboard shortcuts

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