test

package
v0.0.0-...-c28da18 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTestOptions = server.Options{
	Host:   "localhost",
	Port:   4222,
	NoLog:  true,
	NoSigs: true,
}

Functions

func RunDefaultServer

func RunDefaultServer() *server.Server

func RunServer

func RunServer(opts *server.Options) *server.Server

New Go Routine based server

func RunServerWithAuth

func RunServerWithAuth(opts *server.Options, auth server.Auth) *server.Server

New Go Routine based server with auth

func RunServerWithConfig

func RunServerWithConfig(configFile string) (srv *server.Server, opts *server.Options)

Types

type CalculatorHandler

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

func NewCalculatorHandler

func NewCalculatorHandler() *CalculatorHandler

func (*CalculatorHandler) Add

func (p *CalculatorHandler) Add(num1 int32, num2 int32) (retval17 int32, err error)

func (*CalculatorHandler) Calculate

func (p *CalculatorHandler) Calculate(logid int32, w *tutorial.Work) (val int32, err error)

func (*CalculatorHandler) GetStruct

func (p *CalculatorHandler) GetStruct(key int32) (*shared.SharedStruct, error)

func (*CalculatorHandler) Ping

func (p *CalculatorHandler) Ping() (err error)

func (*CalculatorHandler) Zip

func (p *CalculatorHandler) Zip() (err error)

Directories

Path Synopsis
gen-go

Jump to

Keyboard shortcuts

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