Documentation ¶
Index ¶
- func ExpandParameterizedResource(s string, mapping func(string) string) string
- func GetInfoMap() map[string]pairs.Info
- func InfoForMethod(methodName string, in interface{}) *pairs.Info
- func MapMethodTo(methodName, resource, action, httpMethod, httpEndpoint string, ...)
- func Reset()
- type ExpansionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInfoMap ¶
GetInfoMap returns a map of API method names to method metadata.
func InfoForMethod ¶
InfoForMethod retrieves metadata for an API method. The second parameter is used to fill in a placeholder in the resource (though not all resources will have placeholders).
func MapMethodTo ¶
func MapMethodTo(methodName, resource, action, httpMethod, httpEndpoint string, expandFunc ExpansionFunc)
MapMethodTo records details about API methods at startup in a central repository to allow convenient access via InfoForMethod.
Types ¶
type ExpansionFunc ¶
ExpansionFunc dictates how a parameter is filled in to a resource placeholder.
Click to show internal directories.
Click to hide internal directories.