Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientAPI ¶
func CreateClientAPI(d *descriptor.FileDescriptorProto, generator *generator.Generator) (*plugin_go.CodeGeneratorResponse_File, error)
Types ¶
type APIContext ¶
type APIContext struct { Models []*Model Services []*Service Imports []Import // contains filtered or unexported fields }
func NewAPIContext ¶
func NewAPIContext() APIContext
func (*APIContext) AddModel ¶
func (ctx *APIContext) AddModel(m *Model)
func (*APIContext) ApplyImports ¶
func (ctx *APIContext) ApplyImports(d *descriptor.FileDescriptorProto)
func (*APIContext) ApplyMarshalFlags ¶
func (ctx *APIContext) ApplyMarshalFlags()
type Model ¶
type Model struct { Name string Primitive bool Fields []ModelField CanMarshal bool CanUnmarshal bool }
type ModelField ¶
type ModelField struct { Name string Type string InternalType string JSONName string JSONType string IsMessage bool IsRepeated bool IsMap bool MapKeyField *ModelField MapValueField *ModelField }
type Service ¶
type Service struct { Name string Package string Methods []ServiceMethod }
Click to show internal directories.
Click to hide internal directories.