codec

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsJson

type AwsJson struct {
	Host          string            // required, host or host:port
	Path          string            // optional
	SignerV4      authv4.HttpSigner // optional
	AuthInfo      *BasicAuth        // optional
	SecurityToken string            // optional
}

func NewAwsJson

func NewAwsJson(host string, options ...Option) AwsJson

Example: AwsJson := codec.NewAwsJson("foo.com:8080", codec.SetSignerV4(signer))

func (AwsJson) RoundTrip

func (c AwsJson) RoundTrip(r *cod.Request, rw io.ReadWriter) error

type BasicAuth

type BasicAuth struct {
	Username, Password string
}

type Option

type Option func(*AwsJson)

func SetBasicAuth

func SetBasicAuth(ba *BasicAuth) Option

func SetPath

func SetPath(path string) Option

func SetSecurityToken

func SetSecurityToken(securityToken string) Option

func SetSignerV4

func SetSignerV4(signer authv4.HttpSigner) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL