client

package
v0.0.0-...-d9fd4a4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	CDNBaseURL string
	ServerAddr string
}

func New

func New(addr string) (*Client, error)

func (*Client) MultiUploader

func (c *Client) MultiUploader(filepaths []string) (files Resources, err error)

MultiUploader accepts a list of filepaths which are synced to a remote server

type JSONEncoder

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

func NewJSONEncoder

func NewJSONEncoder(w io.Writer) *JSONEncoder

func (*JSONEncoder) Encode

func (e *JSONEncoder) Encode(res Resources) error

type Resource

type Resource struct {
	Filename string
	Path     string `json:"-"`
	URL      string
	MD5      string
	Created  bool
}

type ResourceEncoder

type ResourceEncoder interface {
	Encode(res Resources) error
}

type Resources

type Resources []*Resource

Jump to

Keyboard shortcuts

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