Documentation ¶
Index ¶
- type API
- func (a *API) APIGoCode() string
- func (a *API) Attach(filename string)
- func (a *API) AttachString(str string)
- func (a *API) ExampleGoCode() string
- func (a *API) ExportableName(name string) string
- func (a *API) InterfaceGoCode() string
- func (a *API) InterfacePackageName() string
- func (a *API) NewAPIGoCodeWithPkgName(cfg string) string
- func (a *API) NiceName() string
- func (a *API) OperationList() []*Operation
- func (a *API) OperationNames() []string
- func (a *API) PackageName() string
- func (a *API) ProtocolPackage() string
- func (a *API) ServiceGoCode() string
- func (a *API) Setup()
- func (a *API) ShapeList() []*Shape
- func (a *API) ShapeNames() []string
- func (a *API) StructName() string
- func (a *API) UseInitMethods() bool
- type HTTPInfo
- type Metadata
- type Operation
- type Shape
- func (s *Shape) Docstring() string
- func (s *Shape) GoCode() string
- func (s *Shape) GoType() string
- func (s *Shape) GoTypeElem() string
- func (s *Shape) GoTypeWithPkgName() string
- func (s *Shape) IsRequired(member string) bool
- func (s *Shape) MemberNames() []string
- func (s *Shape) Rename(newName string)
- type ShapeRef
- type XMLInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Metadata Metadata Operations map[string]*Operation Shapes map[string]*Shape // Disables inflection checks. Only use this when generating tests NoInflections bool // Set to true to avoid removing unused shapes NoRemoveUnusedShapes bool // Set to true to ignore service/request init methods (for testing) NoInitMethods bool // contains filtered or unexported fields }
func (*API) AttachString ¶
func (*API) ExampleGoCode ¶
func (*API) ExportableName ¶
func (*API) InterfaceGoCode ¶
Returns the go code for the service's API operations as an interface{}. Assumes that the interface is being created in a different package than the service API's package.
func (*API) InterfacePackageName ¶
Returns the package name for the interface.
func (*API) NewAPIGoCodeWithPkgName ¶
Returns a string of instantiating the API prefixed with its package name. Takes a string depicting the Config.
func (*API) OperationList ¶
func (*API) OperationNames ¶
func (*API) PackageName ¶
func (*API) ProtocolPackage ¶
func (*API) ServiceGoCode ¶
func (*API) ShapeNames ¶
func (*API) StructName ¶
StructName returns the service struct name for a given service
func (*API) UseInitMethods ¶
type Operation ¶
type Operation struct { API *API `json: "-"` ExportedName string Name string Documentation string HTTP HTTPInfo InputRef ShapeRef `json:"input"` OutputRef ShapeRef `json:"output"` }
func (*Operation) ExampleInput ¶
func (*Operation) InterfaceSignature ¶
Returns a string representing the Operation's interface{} functional signature.
type Shape ¶
type Shape struct { API *API `json: "-"` ShapeName string Documentation string MemberRefs map[string]*ShapeRef `json:"members"` MemberRef ShapeRef `json:"member"` KeyRef ShapeRef `json:"key"` ValueRef ShapeRef `json:"value"` Required []string Payload string Type string Exception bool Enum []string Flattened bool Streaming bool Location string LocationName string XMLNamespace XMLInfo // contains filtered or unexported fields }
func (*Shape) GoTypeElem ¶
func (*Shape) GoTypeWithPkgName ¶
Returns a shape's type as a string with the package name in <packageName>.<type> format. package naming only applies to structures.
func (*Shape) IsRequired ¶
func (*Shape) MemberNames ¶
type ShapeRef ¶
type ShapeRef struct { API *API `json: "-"` Shape *Shape `json: "-"` Documentation string ShapeName string `json:"shape"` Location string LocationName string QueryName string Flattened bool Streaming bool XMLAttribute bool XMLNamespace XMLInfo Payload string }
func (*ShapeRef) GoTypeElem ¶
func (*ShapeRef) GoTypeWithPkgName ¶
Returns a shape's type as a string with the package name in <packageName>.<type> format. package naming only applies to structures.