Documentation ¶
Index ¶
- Constants
- func GenerateStub(content string, outputPath string, protocOpts []string, removeStubFiles bool) (map[string]string, error)
- func GetExpectedGithubGoPackageUri(uploadUrl string, protobufContent string) string
- func GetOptionGoPackageNameFromProto(protoContent string) string
- func GetOptionPackageNameFromProto(protoContent string, packageName string) string
- func GetPackageNameFromProto(protoContent string) string
- func GetServiceNameFromProto(protoContent string) string
- type ApiCreator
- type StubCreator
Constants ¶
View Source
const (
ProtocobufOptionTplStr = `{{ .Options }}`
)
Variables ¶
This section is empty.
Functions ¶
func GenerateStub ¶
func GetPackageNameFromProto ¶
func GetServiceNameFromProto ¶
Types ¶
type ApiCreator ¶
type ApiCreator interface { InitProtoFile(packageName string, serviceName string, options []string) (string, error) InitSetupFile(serviceName string) (string, error) }
func NewApiCreator ¶
func NewApiCreator() ApiCreator
type StubCreator ¶
func NewGoStubCreator ¶
func NewGoStubCreator(packageOption string) StubCreator
func NewOpenapiStubCreator ¶
func NewOpenapiStubCreator() StubCreator
Click to show internal directories.
Click to hide internal directories.