Documentation ¶
Index ¶
- func GenerateClient(w io.Writer, data TemplateData) error
- func GenerateServer(w io.Writer, data TemplateData) error
- func GenerateSkeleton(w io.Writer, data TemplateData, existingMethods map[string]*ExistingMethod) error
- func ParseExistingService(filePath string) (map[string]*ExistingMethod, error)
- type ExistingMethod
- type Method
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateClient ¶
func GenerateClient(w io.Writer, data TemplateData) error
func GenerateServer ¶
func GenerateServer(w io.Writer, data TemplateData) error
func GenerateSkeleton ¶
func GenerateSkeleton(w io.Writer, data TemplateData, existingMethods map[string]*ExistingMethod) error
func ParseExistingService ¶ added in v0.1.1
func ParseExistingService(filePath string) (map[string]*ExistingMethod, error)
ParseExistingService parses an existing service file and returns the methods
Types ¶
type ExistingMethod ¶ added in v0.1.1
type ExistingMethod struct { Name string Parameters []string Results []string Body string ContextType string RequestType string ResponseType string }
func (*ExistingMethod) SignatureMatches ¶ added in v0.1.1
func (m *ExistingMethod) SignatureMatches(protoMethod Method) bool
SignatureMatches checks if the method signature matches the proto definition
type Method ¶
func (Method) CallSignature ¶
Click to show internal directories.
Click to hide internal directories.