http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidURL  = errors.New("must provide valid url")
	ErrBadResponse = errors.New("bad response from server")
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(baseURL string) (*Client, error)

func (*Client) Get

func (c *Client) Get(path string) (*http.Response, error)

type GithubService

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

func NewGithubService

func NewGithubService(baseURL string) (*GithubService, error)

func (GithubService) Projects

func (s GithubService) Projects() ([]*vc.Project, error)

Jump to

Keyboard shortcuts

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