x

package module
v0.0.0-...-e494579 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2014 License: MIT Imports: 17 Imported by: 0

README

x

You don't know what they are. I don't know where they will go.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilHandler = errors.New("Client.Handler is `nil`.")
	ErrAccessDeny = errors.New("Access Deny")
)

Functions

func IsFatal

func IsFatal(err error) (fatal bool, e error)

Types

type Bye

type Bye string

type Client

type Client struct {
	Id      string
	Handler PackHandler
	// contains filtered or unexported fields
}

func NewClient

func NewClient(network, addr, secret string) *Client

func (*Client) Close

func (client *Client) Close() error

func (*Client) Loop

func (client *Client) Loop() (err error)

func (*Client) SetTLS

func (client *Client) SetTLS(tlsCert, tlsKey string) (err error)

func (*Client) Write

func (client *Client) Write(data interface{}) (err error)

type Gateway

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

func New

func New(network, addr, secret string) (gw *Gateway)

func (*Gateway) Close

func (gw *Gateway) Close()

func (*Gateway) Loop

func (gw *Gateway) Loop() (err error)

func (*Gateway) SetTLS

func (gw *Gateway) SetTLS(tlsCert, tlsKey string) (err error)

type Hello

type Hello string

type LuaIpt

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

func (*LuaIpt) Bind

func (luaipt *LuaIpt) Bind(name string, item interface{}) error

func (*LuaIpt) Exec

func (luaipt *LuaIpt) Exec(name string, params interface{}) error

func (*LuaIpt) Final

func (luaipt *LuaIpt) Final() error

func (*LuaIpt) Init

func (luaipt *LuaIpt) Init(path string) error

type Pack

type Pack struct {
	From, To string
	Data     interface{}
}

type PackHandler

type PackHandler func(Pack)

type SignIn

type SignIn struct {
	Token []byte
	Time  time.Time
}

func NewSignIn

func NewSignIn(secret string) *SignIn

func (*SignIn) Auth

func (signIn *SignIn) Auth(secret string) bool

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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