alkasir: github.com/alkasir/alkasir/pkg/browsercode Index | Files

package browsercode

import "github.com/alkasir/alkasir/pkg/browsercode"

Index

Package Files

browsercode.go

func NewKey Uses

func NewKey() string

type BrowserCode Uses

type BrowserCode struct {
    Key  string // authentication key, HEX encoded.
    Host string // the client is bound to this, localhost is assumed if not specified.
    Port string // the client is bound to this,
}

BrowserCode .

func Decode Uses

func Decode(encoded string) (BrowserCode, error)

func New Uses

func New(hostport string) (BrowserCode, error)

func (*BrowserCode) Addr Uses

func (b *BrowserCode) Addr() string

func (*BrowserCode) CopyToClipboard Uses

func (b *BrowserCode) CopyToClipboard() error

func (*BrowserCode) Encode Uses

func (b *BrowserCode) Encode() (string, error)

func (*BrowserCode) SetHostport Uses

func (b *BrowserCode) SetHostport(hostport string) error

Package browsercode imports 9 packages (graph) and is imported by 2 packages. Updated 2016-07-24. Refresh now. Tools for package owners.