Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarvelNewModifier ¶
func MarvelNewModifier(public, private string) martian.RequestModifier
MarvelNewModifier returns a request modifier that will set the query string at key with the given value. If the query string key already exists all values will be overwritten.
Types ¶
type MarvelModifier ¶
type MarvelModifier struct {
// contains filtered or unexported fields
}
MarvelModifier contains the private and public Marvel API key
func (*MarvelModifier) ModifyRequest ¶
func (m *MarvelModifier) ModifyRequest(req *http.Request) error
ModifyRequest modifies the query string of the request with the given key and value.
type MarvelModifierJSON ¶
type MarvelModifierJSON struct {
Public string `json:"public"`
Private string `json:"private"`
Scope []parse.ModifierType `json:"scope"`
}
MarvelModifierJSON to Unmarshal the JSON configuration
Click to show internal directories.
Click to hide internal directories.