request

package
v0.0.0-...-3f44578 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrackerDomain           = "https://www.pivotaltracker.com/services/v5"
	MeRequestPath           = "/me"
	AuthenticateRequestPath = "/me"
	ProjectsRequestPath     = "/projects"
	ActivityRequestPath     = "/projects/%d/activity?limit=5"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APITokenStrategy

type APITokenStrategy struct {
	APIToken string
}

func (*APITokenStrategy) Strategize

func (s *APITokenStrategy) Strategize(r *http.Request)

type BasicAuthStrategy

type BasicAuthStrategy struct {
	Username string
	Password string
}

func (*BasicAuthStrategy) Strategize

func (s *BasicAuthStrategy) Strategize(r *http.Request)

type RequestAuthStrategy

type RequestAuthStrategy interface {
	Strategize(*http.Request)
}

type Requester

type Requester struct {
	// contains filtered or unexported fields
}

func New

func New(url string, authStrategy RequestAuthStrategy) Requester

func (*Requester) Execute

func (r *Requester) Execute() ([]byte, error)

type Resolver

type Resolver struct {
	TrackerDomain string
}

func NewDefaultResolver

func NewDefaultResolver() Resolver

func (*Resolver) ActivityRequestURL

func (r *Resolver) ActivityRequestURL(projectID int) string

func (*Resolver) AuthenticateRequestURL

func (r *Resolver) AuthenticateRequestURL() string

func (*Resolver) MeRequestURL

func (r *Resolver) MeRequestURL() string

func (*Resolver) ProjectsRequestURL

func (r *Resolver) ProjectsRequestURL() string

Jump to

Keyboard shortcuts

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