Documentation
¶
Overview ¶
Package protodetecttypes identifies static types (go/types, typically obtained at build time) generated by protoc-gen-go. The protodetectreflect package is the counterpart for dynamic types (reflect, obtained at runtime).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageAPI ¶
type MessageAPI int
MessageAPI determines which API is used for the generated message type.
const ( // Invalid indicates the specified type is not a proto message. Invalid MessageAPI = iota // OpenAPI indicates a message generated in the open struct API, // where the message representation is a Go struct with exported fields. OpenAPI // HybridAPI indicates a message generated in the hybrid API, // where the message has properties of both OpenAPI and OpaqueAPI. HybridAPI // OpaqueAPI indicates a message generated in the opaque API, // where the message can only be interacted with through accessor methods. OpaqueAPI )
type Type ¶
Type represents a go/types.Type obtained at build time.
func (Type) MessageAPI ¶
func (t Type) MessageAPI() MessageAPI
MessageAPI determines the API of the generated message.
Click to show internal directories.
Click to hide internal directories.