Skip to content

Provide a Signer type with more convenient methods #13

Description

@kr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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