Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdDirTokens = []string{"pkg", "cmd"}
View Source
var (
EndpointDirTokens = []string{"pkg", "endpoint"}
)
Functions ¶
func GetProjectDirs ¶
GetProjectDirs get default project dir
Types ¶
type ClientOption ¶
type ClientOption struct {
Dir string
}
type EndpointOption ¶
type EndpointOption struct {
Dir string
}
func NewEndpointOption ¶
func NewEndpointOption(svcName string) *EndpointOption
func (EndpointOption) GetName ¶
func (e EndpointOption) GetName() string
type GenerateOption ¶
type GenerateOption struct { RootDir string Service *ServiceOption // service generating options Grpc *GrpcOption Cmd *CmdOption // cmd generating options Client *ClientOption // client generating options Main *MainOption // main.go file option }
func GetAllOption ¶
func GetAllOption(rootDir string) *GenerateOption
type GrpcOption ¶
func NewGrpcOption ¶
func NewGrpcOption(rootDir string) *GrpcOption
func (*GrpcOption) GetName ¶
func (e *GrpcOption) GetName() string
type MainOption ¶
type MainOption struct { Root string Dir string SvcDir string // service files generating dir GrpcDir string PbDir string }
func NewMainOption ¶
func NewMainOption(rootDir string) *MainOption
type ServiceMeta ¶
type ServiceMeta struct { RawSvcName string SvcInterfaceName string SvcStructName string SvcInterface *parser.Interface }
func GetServiceMeta ¶
func GetServiceMeta(rootDir string) (*ServiceMeta, error)
type ServiceOption ¶
func NewServiceOption ¶
func NewServiceOption(rootDir string) *ServiceOption
Source Files
¶
Click to show internal directories.
Click to hide internal directories.