Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type MethodHTTPParams ¶
type MethodMessage ¶
type MethodMessage struct {
Name string
Fields []MethodMessageField
}
type MethodMessageField ¶
type MethodParams ¶
type MethodParams struct {
Method string
HTTP MethodHTTPParams
// contains filtered or unexported fields
}
func (*MethodParams) RequestGo ¶
func (p *MethodParams) RequestGo(pkg string) string
func (*MethodParams) RequestProto ¶
func (p *MethodParams) RequestProto() string
func (*MethodParams) ResponseGo ¶
func (p *MethodParams) ResponseGo(pkg string) string
func (*MethodParams) ResponseProto ¶
func (p *MethodParams) ResponseProto() string
type MethodsParams ¶
type MethodsParams struct {
Methods []MethodParams
ProtoImports []string
GoImports []string
Messages []MethodMessage
}
type Params ¶
type Params struct {
ProtoDir string
ProtoOutDir string
ServerDir string
Path string
ServiceName string
Methods []MethodParams
Proto ProtoParams
PbGo PbGoParams
Go GoParams
}
type PbGoParams ¶
type ProtoParams ¶
type ProtoParams struct {
Package string
Imports []string
Messages []MethodMessage
}
Click to show internal directories.
Click to hide internal directories.