Documentation ¶
Index ¶
- func GetGithubContentLocation(url string) (string, string, string)
- type DataModelDescriptor
- type Generator
- type ServiceDescriptor
- type ServiceMethodDescriptor
- type ServiceTemplate
- func (t *ServiceTemplate) WithDataModelNames(modelNames []string) *ServiceTemplate
- func (t *ServiceTemplate) WithRpcParameters(protoContent string, goModule string, goVersion string, userServiceName string) *ServiceTemplate
- func (t *ServiceTemplate) WithRpcProtocol(protoUri string, goModule string, goVersion string, serviceName string, ...) *ServiceTemplate
- func (t *ServiceTemplate) WithUserValues(values map[string]string) *ServiceTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataModelDescriptor ¶
type Generator ¶
type Generator interface { CreateCodeContent( tpl string, serviceTemplate *ServiceTemplate, ) map[string]string }
func NewGrpcGoGenerator ¶
func NewGrpcGoGenerator() Generator
type ServiceDescriptor ¶
type ServiceDescriptor struct { Name string Methods []ServiceMethodDescriptor }
type ServiceMethodDescriptor ¶
type ServiceTemplate ¶
type ServiceTemplate struct { GoModule string GoVersion string GoPackageAddress string HttpEnabled bool SwaggerEnabled bool ProtocolServiceName string ProtocolServiceNameLower string ProtocolContent string ServiceName string ServiceNameCamelCase string ServiceNameLower string DefaultDataModelNameCamelCase string DefaultDataModelNameLowerCase string RpcServices []ServiceDescriptor DataModels []DataModelDescriptor Value map[string]string }
func CreateServiceTemplate ¶
func CreateServiceTemplate() *ServiceTemplate
func (*ServiceTemplate) WithDataModelNames ¶
func (t *ServiceTemplate) WithDataModelNames(modelNames []string) *ServiceTemplate
func (*ServiceTemplate) WithRpcParameters ¶
func (t *ServiceTemplate) WithRpcParameters( protoContent string, goModule string, goVersion string, userServiceName string, ) *ServiceTemplate
func (*ServiceTemplate) WithRpcProtocol ¶
func (t *ServiceTemplate) WithRpcProtocol(protoUri string, goModule string, goVersion string, serviceName string, httpEnabled bool) *ServiceTemplate
func (*ServiceTemplate) WithUserValues ¶
func (t *ServiceTemplate) WithUserValues(values map[string]string) *ServiceTemplate
Click to show internal directories.
Click to hide internal directories.