api

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2016 License: GPL-3.0 Imports: 9 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	AuthUrl() string
	UploadAsciicast(string) (string, string, error)
}

type AsciinemaAPI

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

func New

func New(url, user, token, version string) *AsciinemaAPI

func (*AsciinemaAPI) AuthUrl added in v1.0.0

func (a *AsciinemaAPI) AuthUrl() string

func (*AsciinemaAPI) UploadAsciicast added in v1.0.0

func (a *AsciinemaAPI) UploadAsciicast(path string) (string, string, error)

type HTTP

type HTTP interface {
	PostForm(string, string, string, map[string]string, map[string]io.ReadCloser) (*http.Response, error)
}

type HTTPClient

type HTTPClient struct{}

func (*HTTPClient) PostForm

func (c *HTTPClient) PostForm(url, username, password string, headers map[string]string, files map[string]io.ReadCloser) (*http.Response, error)

Jump to

Keyboard shortcuts

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