gamerec

package
v0.0.0-...-13c8884 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPool

func InitPool(envString string, initialCap, maxCap int)

包第一次加载是初始化一个全局的pool

Types

type GameMateRec

type GameMateRec struct {
	Id       string   `json:"id"`
	PkgNames []string `json:"pkgNames"`
	TraceId  string   `json:"traceId"`
	Score    float64  `json:"score"`
}

type HttpGameMateRec

type HttpGameMateRec struct {
	Status  int            `json:"status"`
	Count   int            `json:"count"`
	RecData []*GameMateRec `json:"data"`
}

func Json2HttpGameMetaRec

func Json2HttpGameMetaRec(str string) (*HttpGameMateRec, error)

type HttpRecGames

type HttpRecGames struct {
	Status  int        `json:"status"`
	Count   int        `json:"count"`
	RecData []*RecGame `json:"data"`
}

func Json2HttpRecGames

func Json2HttpRecGames(str string) (*HttpRecGames, error)

func NextGames

func NextGames(userId string, count int32, reset bool) (*HttpRecGames, error)

type HttpRecSubjects

type HttpRecSubjects struct {
	Status  int           `json:"status"`
	Count   int           `json:"count"`
	RecData []*RecSubject `json:"data"`
}

func Json2HttpRecSubjects

func Json2HttpRecSubjects(str string) (*HttpRecSubjects, error)

type MetaRecGame

type MetaRecGame map[MetaType]*HttpGameMateRec

func NewMetaRecGame

func NewMetaRecGame() *MetaRecGame

func (*MetaRecGame) GetGame

func (this *MetaRecGame) GetGame() *HttpGameMateRec

func (*MetaRecGame) GetGameSubject

func (this *MetaRecGame) GetGameSubject() *HttpGameMateRec

func (*MetaRecGame) GetMiGame

func (this *MetaRecGame) GetMiGame() *HttpGameMateRec

func (*MetaRecGame) SetHttpGameMateRec

func (this *MetaRecGame) SetHttpGameMateRec(field MetaType, data *HttpGameMateRec)

type MetaReqests

type MetaReqests []*MetaRequest

func NewMetaRequests

func NewMetaRequests() MetaReqests

func (*MetaReqests) AppendReq

func (this *MetaReqests) AppendReq(RecType int64, count int32)

type RecGame

type RecGame struct {
	PkgName string `json:"id"`
	Reason  string `json:"reason"`
	TraceId string `json:"traceId"`
}

type RecSubject

type RecSubject struct {
	SubId    string   `json:"id"`
	PkgNames []string `json:"pkgNames"`
	TraceIds string   `json:"traceId"`
	Score    float64  `json:"score"`
}

type Wrap

type Wrap struct {
	*ClientProxy
}

no need change below

func GetPoolClient

func GetPoolClient() (*Wrap, error)

GameRecClient

func (*Wrap) NextGames

func (this *Wrap) NextGames(userId string,
	count int32, params map[string]string) (string, error)

//////////////////////////////////////////////////////////////////////////////

func (*Wrap) Service

func (this *Wrap) Service() GameRec

Directories

Path Synopsis
gen-go

Jump to

Keyboard shortcuts

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