srvdefine

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ParamArgs args type
	ParamArgs = ParamType(true)
	//ParamReply reply type
	ParamReply = ParamType(false)
)

Variables

View Source
var ServiceMethodParamPool = &SrvVarPool{}

ServiceMethodParamPool service method param pool

Functions

This section is empty.

Types

type ParamType

type ParamType bool

ParamType param type

type Pub

type Pub struct {
}

Pub Pub服务定义

func (Pub) HeroGetAll

HeroGetAll 取所有英雄数据

func (Pub) SignUp

func (Pub) SignUp(*pubmsg.SignUpArgs, *pubmsg.SignUpReply)

SignUp 登录

type Reset

type Reset interface {
	Reset()
}

Reset defines Reset method for pooled object.

type SrvVarPool

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

SrvVarPool service method param variable pool

func (*SrvVarPool) Get

func (sv *SrvVarPool) Get(path string, method string, typ ParamType) (x interface{}, err error)

Get get param interface{} from the pool

func (*SrvVarPool) Put

func (sv *SrvVarPool) Put(path string, method string, typ ParamType, x interface{}) (err error)

Put put param interface{} back to the pool

Jump to

Keyboard shortcuts

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