Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIContext ¶
type APIContext struct { Models []*Model Services []*Service Imports []Import FileName string // contains filtered or unexported fields }
func NewAPIContext ¶
func NewAPIContext(filename string) APIContext
func (*APIContext) AddModel ¶
func (ctx *APIContext) AddModel(m *Model)
func (*APIContext) ApplyImports ¶
func (ctx *APIContext) ApplyImports(f *protogen.File)
type Model ¶
type Model struct { Name string Primitive bool Fields []ModelField }
type ModelField ¶
type Service ¶
type Service struct { Name string Package string Methods []ServiceMethod }
Click to show internal directories.
Click to hide internal directories.