Documentation ¶
Index ¶
- Variables
- func RunDefaultServer() *server.Server
- func RunServer(opts *server.Options) *server.Server
- func RunServerWithAuth(opts *server.Options, auth server.Auth) *server.Server
- func RunServerWithConfig(configFile string) (srv *server.Server, opts *server.Options)
- type CalculatorHandler
- func (p *CalculatorHandler) Add(num1 int32, num2 int32) (retval17 int32, err error)
- func (p *CalculatorHandler) Calculate(logid int32, w *tutorial.Work) (val int32, err error)
- func (p *CalculatorHandler) GetStruct(key int32) (*shared.SharedStruct, error)
- func (p *CalculatorHandler) Ping() (err error)
- func (p *CalculatorHandler) Zip() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTestOptions = server.Options{ Host: "localhost", Port: 4222, NoLog: true, NoSigs: true, }
Functions ¶
func RunDefaultServer ¶
func RunServerWithAuth ¶
New Go Routine based server with auth
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) 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)
Click to show internal directories.
Click to hide internal directories.