api

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(ctx tp.PullCtx, args *struct{}) (*types.HomeReply, *tp.Rerror)

Home comment...

func Route

func Route(root string, router *tp.Router)

Route registers handlers to router.

func Stat

func Stat(ctx tp.PushCtx, args *types.StatArgs) *tp.Rerror

Stat comment...

Types

type Math

type Math struct {
	tp.PullCtx
}

Math controller

func (*Math) Divide

func (m *Math) Divide(args *types.DivideArgs) (*types.DivideReply, *tp.Rerror)

Divide handler

Jump to

Keyboard shortcuts

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