Documentation ¶
Index ¶
- func GenCSCode(csdir string, spec *types.ServiceSpec, options *GenCSCodeOptions) error
- func GenServiceProto(out io.Writer, spec *types.ServiceSpec, options *ServiceProtoOptions) error
- func Protoc(protoFile, protocExec, gen string, paths []string) error
- type CSMethod
- type CSValue
- type GenCSCodeOptions
- type ProtoField
- type ProtoMessage
- type ProtoMethod
- type ProtoValue
- type ServiceProtoOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenCSCode ¶
func GenCSCode(csdir string, spec *types.ServiceSpec, options *GenCSCodeOptions) error
GenCSCode generator client, server code
func GenServiceProto ¶
func GenServiceProto(out io.Writer, spec *types.ServiceSpec, options *ServiceProtoOptions) error
GenServiceProto generator proto service by service spec
Types ¶
type CSMethod ¶
type CSMethod struct { Name string Comments []string ParamBlock string ReturnBlock string ParamPbBlock string }
CSMethod ...
type CSValue ¶
type CSValue struct { Name string PbPackage string RecvName string RecvPackage string Imports map[string]struct{} ClientImports map[string]struct{} Methods []CSMethod // contains filtered or unexported fields }
CSValue ...
type GenCSCodeOptions ¶
GenCSCodeOptions options
type ProtoField ¶
ProtoField ProtoField
type ProtoMessage ¶
type ProtoMessage struct { Name string Fields []ProtoField }
ProtoMessage ProtoMessage
type ProtoMethod ¶
ProtoMethod method info
type ProtoValue ¶
type ProtoValue struct { Package string Name string GoPackage string Imports map[string]bool Messages map[string]ProtoMessage Methods []ProtoMethod // contains filtered or unexported fields }
ProtoValue proto template render value
Click to show internal directories.
Click to hide internal directories.