Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Name string BaseURI string PackageName string RootImportPath string Services map[string]*ClientService TargetDir string // contains filtered or unexported fields }
Client represents a Golang client
type ClientService ¶
type ClientService struct { resource.ClientService PackageName string Methods []clientMethod }
ClientService represents a root endpoint of an API
func (ClientService) Imports ¶
func (cs ClientService) Imports() []string
func (ClientService) NeedImportJSON ¶
func (cs ClientService) NeedImportJSON() bool
NeedImportJSON returns true if this service need to import encoding/json
type Server ¶
type Server struct { ResourcesDef []*goResource PackageName string // Name of the package this server resides in RootImportPath string TargetDir string // root directory of the generated code // contains filtered or unexported fields }
Server represents a Go server
func NewServer ¶
func NewServer(apiDef *raml.APIDefinition, packageName, apiDocsDir, rootImportPath string, withMain bool, targetDir string, libsRootURLs []string) *Server
NewServer creates a new Golang server
func (*Server) APIDocsDir ¶
APIDocsDir implements codegen.Server.APIDocsDir interface
func (Server) RouteImports ¶
RouteImports returns all import packages
func (Server) ShowAPIDocsAndIndex ¶
ShowAPIDocsAndIndex returns if show api docs and index
Source Files
¶
Click to show internal directories.
Click to hide internal directories.