common

package
v0.0.0-...-c665954 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Id   []byte
	Hash []byte
	Data uint64
}

func DecodeAuth

func DecodeAuth(in string) (*Auth, error)

func (Auth) Encode

func (a Auth) Encode() (string, error)

type Blob

type Blob struct {
	Hash   uint64
	Source map[string]uint64 // package path and hash of all local (e.g. non standard library) packages needed to compile this package
	Lib    []string          // list of all standard library packages needed to compile this package
}

type Bundle

type Bundle struct {
	Hash  uint64
	Files map[string][]byte
}

type Client

type Client struct {
	Doc           dom.HTMLDocument
	Body          *dom.HTMLBodyElement
	AuthAttribute string
	Auth          *Auth
	Cache         *wcache.Cache
	Log           Logger
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Init

func (c *Client) Init() error

type Logger

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

func NewLogger

func NewLogger(span *dom.HTMLSpanElement) Logger

func (Logger) Print

func (l Logger) Print(a ...interface{}) (int, error)

func (Logger) Printf

func (l Logger) Printf(format string, a ...interface{}) (int, error)

func (Logger) Println

func (l Logger) Println(a ...interface{}) (int, error)

Jump to

Keyboard shortcuts

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