Skip to content

Provide a Signer type with more convenient methods #13

Open
@kr

Description

It's common to use one set of keys for all requests, so put the keys
into the receiver. Possible interface:

type Signer struct {
    Keys

    Service *Service // if nil, DefaultService is used

    Time func() time.Time // if nil, time.Now is used
}

func (s *Signer) Sign(*http.Request) error

With addition of an underlying http transport, this type could also
satisfy #12.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions