Documentation
¶
Index ¶
- func New(pkg string) code.Generator
- type Constant
- type Constants
- type CustomError
- type CustomErrors
- type Enum
- type EnumKeyValue
- type Enums
- type Golang
- type HttpService
- type HttpServices
- type Method
- func (m Method) ArgsNames(prefix string) string
- func (m Method) ArgsNamesValues() string
- func (m Method) ArgsStructDefinitions(pointer bool) string
- func (m Method) GetReturnStreamName() (string, error)
- func (m Method) HasArgs() string
- func (m Method) HasReturns() bool
- func (m Method) IsBinary() bool
- func (m Method) IsFileUpload() bool
- func (m Method) IsStream() bool
- func (m Method) PathName() string
- func (m Method) PathValue() string
- func (m Method) ReturnStreamType() string
- func (m Method) ReturnsNames(prefix string) string
- func (m Method) ReturnsStructDefinitions() string
- func (m Method) TopicName() string
- func (m Method) TopicValue() string
- type MethodArg
- type MethodArgs
- type MethodReturn
- type MethodReturns
- type Methods
- type Model
- type ModelField
- type ModelFields
- type Models
- type RpcService
- type RpcServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomErrors ¶
type CustomErrors []CustomError
type Enum ¶
type Enum struct { Name string Type string // int8, int16, int32, int64 Keys []EnumKeyValue }
type EnumKeyValue ¶
type Golang ¶
type Golang struct { PkgName string CustomErrors CustomErrors Constants Constants Enums Enums Models Models HttpServices HttpServices RpcServices RpcServices }
func (Golang) HasConstants ¶
func (Golang) HasHttpServices ¶
func (Golang) HasRpcServices ¶
type HttpService ¶
func (HttpService) NameImpl ¶
func (s HttpService) NameImpl() string
func (HttpService) PathName ¶
func (s HttpService) PathName() string
func (HttpService) PathValue ¶
func (s HttpService) PathValue() string
type HttpServices ¶
type HttpServices []HttpService
type Method ¶
type Method struct { Name string Service string Options astutil.MethodOptions Args MethodArgs Returns MethodReturns }
func (Method) ArgsNamesValues ¶
func (Method) ArgsStructDefinitions ¶
func (Method) GetReturnStreamName ¶
func (Method) HasReturns ¶
func (Method) IsFileUpload ¶
func (Method) ReturnStreamType ¶
func (Method) ReturnsNames ¶
func (Method) ReturnsStructDefinitions ¶
func (Method) TopicValue ¶
type MethodArgs ¶
type MethodArgs []MethodArg
func (MethodArgs) Definitions ¶
func (m MethodArgs) Definitions() string
type MethodReturn ¶
type MethodReturns ¶
type MethodReturns []MethodReturn
func (MethodReturns) Definitions ¶
func (m MethodReturns) Definitions() string
type Model ¶
type Model struct { Name string Fields ModelFields }
type ModelField ¶
type ModelFields ¶
type ModelFields []ModelField
type RpcService ¶
func (RpcService) TopicName ¶
func (s RpcService) TopicName() string
func (RpcService) TopicValue ¶
func (s RpcService) TopicValue() string
type RpcServices ¶
type RpcServices []RpcService
Click to show internal directories.
Click to hide internal directories.