Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binding ¶
type Binding struct { From string // Source: header/path/query Name string // Field name in the source }
Binding represents a field binding from headers, path, or query
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context holds all necessary information used during code generation.
type RPC ¶
type RPC struct { Name string // Method name Request string // Request type name Response string // Response type name Stream bool // Whether this RPC is a streaming RPC Path string // HTTP path Method string // HTTP method (GET, POST, etc.) Comment string // comment or description of the RPC }
RPC represents a single remote procedure call with HTTP metadata.
type Type ¶
Type represents a Go struct
func (*Type) BindingCount ¶
BindingCount returns the number of fields in the struct that have binding info
type TypeField ¶
type TypeField struct { Type string TypeKind TypeKind Name string Default *string Tag string Validate *string Binding *Binding Comment string }
TypeField represents a field in a Go struct
type ValidateFunc ¶
ValidateFunc represents a custom validation function
Click to show internal directories.
Click to hide internal directories.