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

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type GameRec

type GameRec interface {
	miliaoshared.MiliaoSharedService

	// Parameters:
	//  - Key
	//  - Count
	//  - Params
	SimilarGame(key string, count int32, params string) (r string, err error)
	// Parameters:
	//  - UserId
	//  - Count
	//  - Params
	PersonalGamePortal(userId string, count int32, params map[string]string) (r string, err error)
	// Parameters:
	//  - UserId
	//  - Count
	//  - Params
	PersonalGameStatic(userId string, count int32, params map[string]string) (r string, err error)
	// Parameters:
	//  - UserId
	//  - Count
	//  - Params
	PersonalGamePortalByMd5(userId string, count int32, params map[string]string) (r string, err error)
	// Parameters:
	//  - UserId
	//  - Count
	//  - Params
	PersonalGameStaticByMd5(userId string, count int32, params map[string]string) (r string, err error)
	// Parameters:
	//  - UserId
	//  - Count
	//  - GameCount
	//  - Params
	SubjectGame(userId string, count int32, gameCount int32, params map[string]string) (r string, err error)
	// Parameters:
	//  - UserId
	//  - Requests
	//  - Params
	MultipleGameMetaRec(userId string, requests []*MetaRequest, params map[string]string) (r map[MetaType]string, err error)
}

type GameRecClient

type GameRecClient struct {
	*miliaoshared.MiliaoSharedServiceClient
}

func NewGameRecClientProtocol

func NewGameRecClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *GameRecClient

func (*GameRecClient) MultipleGameMetaRec

func (p *GameRecClient) MultipleGameMetaRec(userId string, requests []*MetaRequest, params map[string]string) (r map[MetaType]string, err error)

Parameters:

  • UserId
  • Requests
  • Params

func (*GameRecClient) PersonalGamePortal

func (p *GameRecClient) PersonalGamePortal(userId string, count int32, params map[string]string) (r string, err error)

Parameters:

  • UserId
  • Count
  • Params

func (*GameRecClient) PersonalGamePortalByMd5

func (p *GameRecClient) PersonalGamePortalByMd5(userId string, count int32, params map[string]string) (r string, err error)

Parameters:

  • UserId
  • Count
  • Params

func (*GameRecClient) PersonalGameStatic

func (p *GameRecClient) PersonalGameStatic(userId string, count int32, params map[string]string) (r string, err error)

Parameters:

  • UserId
  • Count
  • Params

func (*GameRecClient) PersonalGameStaticByMd5

func (p *GameRecClient) PersonalGameStaticByMd5(userId string, count int32, params map[string]string) (r string, err error)

Parameters:

  • UserId
  • Count
  • Params

func (*GameRecClient) SimilarGame

func (p *GameRecClient) SimilarGame(key string, count int32, params string) (r string, err error)

Parameters:

  • Key
  • Count
  • Params

func (*GameRecClient) SubjectGame

func (p *GameRecClient) SubjectGame(userId string, count int32, gameCount int32, params map[string]string) (r string, err error)

Parameters:

  • UserId
  • Count
  • GameCount
  • Params

type GameRecProcessor

type GameRecProcessor struct {
	*miliaoshared.MiliaoSharedServiceProcessor
}

func NewGameRecProcessor

func NewGameRecProcessor(handler GameRec) *GameRecProcessor

type MetaRequest

type MetaRequest struct {
	TypeA1 MetaType `thrift:"type,1"`
	Count  int32    `thrift:"count,2"`
}

func NewMetaRequest

func NewMetaRequest() *MetaRequest

func (*MetaRequest) IsSetTypeA1

func (p *MetaRequest) IsSetTypeA1() bool

func (*MetaRequest) Read

func (p *MetaRequest) Read(iprot thrift.TProtocol) error

func (*MetaRequest) String

func (p *MetaRequest) String() string

func (*MetaRequest) Write

func (p *MetaRequest) Write(oprot thrift.TProtocol) error

type MetaType

type MetaType int64
const (
	MetaType_GAME         MetaType = 1
	MetaType_MI_GAME      MetaType = 2
	MetaType_GAME_SUBJECT MetaType = 3
	MetaType_GAME_NEWS    MetaType = 4
	MetaType_GAME_GIFT    MetaType = 5
)

func MetaTypeFromString

func MetaTypeFromString(s string) (MetaType, error)

func (MetaType) String

func (p MetaType) String() string

type MultipleGameMetaRecArgs

type MultipleGameMetaRecArgs struct {
	UserId   string            `thrift:"userId,1"`
	Requests []*MetaRequest    `thrift:"requests,2"`
	Params   map[string]string `thrift:"params,3"`
}

func NewMultipleGameMetaRecArgs

func NewMultipleGameMetaRecArgs() *MultipleGameMetaRecArgs

func (*MultipleGameMetaRecArgs) Read

func (*MultipleGameMetaRecArgs) String

func (p *MultipleGameMetaRecArgs) String() string

func (*MultipleGameMetaRecArgs) Write

type MultipleGameMetaRecResult

type MultipleGameMetaRecResult struct {
	Success map[MetaType]string `thrift:"success,0"`
}

func NewMultipleGameMetaRecResult

func NewMultipleGameMetaRecResult() *MultipleGameMetaRecResult

func (*MultipleGameMetaRecResult) Read

func (*MultipleGameMetaRecResult) String

func (p *MultipleGameMetaRecResult) String() string

func (*MultipleGameMetaRecResult) Write

type PersonalGamePortalArgs

type PersonalGamePortalArgs struct {
	UserId string            `thrift:"userId,1"`
	Count  int32             `thrift:"count,2"`
	Params map[string]string `thrift:"params,3"`
}

func NewPersonalGamePortalArgs

func NewPersonalGamePortalArgs() *PersonalGamePortalArgs

func (*PersonalGamePortalArgs) Read

func (*PersonalGamePortalArgs) String

func (p *PersonalGamePortalArgs) String() string

func (*PersonalGamePortalArgs) Write

func (p *PersonalGamePortalArgs) Write(oprot thrift.TProtocol) error

type PersonalGamePortalByMd5Args

type PersonalGamePortalByMd5Args struct {
	UserId string            `thrift:"userId,1"`
	Count  int32             `thrift:"count,2"`
	Params map[string]string `thrift:"params,3"`
}

func NewPersonalGamePortalByMd5Args

func NewPersonalGamePortalByMd5Args() *PersonalGamePortalByMd5Args

func (*PersonalGamePortalByMd5Args) Read

func (*PersonalGamePortalByMd5Args) String

func (p *PersonalGamePortalByMd5Args) String() string

func (*PersonalGamePortalByMd5Args) Write

type PersonalGamePortalByMd5Result

type PersonalGamePortalByMd5Result struct {
	Success string `thrift:"success,0"`
}

func NewPersonalGamePortalByMd5Result

func NewPersonalGamePortalByMd5Result() *PersonalGamePortalByMd5Result

func (*PersonalGamePortalByMd5Result) Read

func (*PersonalGamePortalByMd5Result) String

func (*PersonalGamePortalByMd5Result) Write

type PersonalGamePortalResult

type PersonalGamePortalResult struct {
	Success string `thrift:"success,0"`
}

func NewPersonalGamePortalResult

func NewPersonalGamePortalResult() *PersonalGamePortalResult

func (*PersonalGamePortalResult) Read

func (*PersonalGamePortalResult) String

func (p *PersonalGamePortalResult) String() string

func (*PersonalGamePortalResult) Write

type PersonalGameStaticArgs

type PersonalGameStaticArgs struct {
	UserId string            `thrift:"userId,1"`
	Count  int32             `thrift:"count,2"`
	Params map[string]string `thrift:"params,3"`
}

func NewPersonalGameStaticArgs

func NewPersonalGameStaticArgs() *PersonalGameStaticArgs

func (*PersonalGameStaticArgs) Read

func (*PersonalGameStaticArgs) String

func (p *PersonalGameStaticArgs) String() string

func (*PersonalGameStaticArgs) Write

func (p *PersonalGameStaticArgs) Write(oprot thrift.TProtocol) error

type PersonalGameStaticByMd5Args

type PersonalGameStaticByMd5Args struct {
	UserId string            `thrift:"userId,1"`
	Count  int32             `thrift:"count,2"`
	Params map[string]string `thrift:"params,3"`
}

func NewPersonalGameStaticByMd5Args

func NewPersonalGameStaticByMd5Args() *PersonalGameStaticByMd5Args

func (*PersonalGameStaticByMd5Args) Read

func (*PersonalGameStaticByMd5Args) String

func (p *PersonalGameStaticByMd5Args) String() string

func (*PersonalGameStaticByMd5Args) Write

type PersonalGameStaticByMd5Result

type PersonalGameStaticByMd5Result struct {
	Success string `thrift:"success,0"`
}

func NewPersonalGameStaticByMd5Result

func NewPersonalGameStaticByMd5Result() *PersonalGameStaticByMd5Result

func (*PersonalGameStaticByMd5Result) Read

func (*PersonalGameStaticByMd5Result) String

func (*PersonalGameStaticByMd5Result) Write

type PersonalGameStaticResult

type PersonalGameStaticResult struct {
	Success string `thrift:"success,0"`
}

func NewPersonalGameStaticResult

func NewPersonalGameStaticResult() *PersonalGameStaticResult

func (*PersonalGameStaticResult) Read

func (*PersonalGameStaticResult) String

func (p *PersonalGameStaticResult) String() string

func (*PersonalGameStaticResult) Write

type SimilarGameArgs

type SimilarGameArgs struct {
	Key    string `thrift:"key,1"`
	Count  int32  `thrift:"count,2"`
	Params string `thrift:"params,3"`
}

func NewSimilarGameArgs

func NewSimilarGameArgs() *SimilarGameArgs

func (*SimilarGameArgs) Read

func (p *SimilarGameArgs) Read(iprot thrift.TProtocol) error

func (*SimilarGameArgs) String

func (p *SimilarGameArgs) String() string

func (*SimilarGameArgs) Write

func (p *SimilarGameArgs) Write(oprot thrift.TProtocol) error

type SimilarGameResult

type SimilarGameResult struct {
	Success string `thrift:"success,0"`
}

func NewSimilarGameResult

func NewSimilarGameResult() *SimilarGameResult

func (*SimilarGameResult) Read

func (p *SimilarGameResult) Read(iprot thrift.TProtocol) error

func (*SimilarGameResult) String

func (p *SimilarGameResult) String() string

func (*SimilarGameResult) Write

func (p *SimilarGameResult) Write(oprot thrift.TProtocol) error

type SubjectGameArgs

type SubjectGameArgs struct {
	UserId    string            `thrift:"userId,1"`
	Count     int32             `thrift:"count,2"`
	GameCount int32             `thrift:"gameCount,3"`
	Params    map[string]string `thrift:"params,4"`
}

func NewSubjectGameArgs

func NewSubjectGameArgs() *SubjectGameArgs

func (*SubjectGameArgs) Read

func (p *SubjectGameArgs) Read(iprot thrift.TProtocol) error

func (*SubjectGameArgs) String

func (p *SubjectGameArgs) String() string

func (*SubjectGameArgs) Write

func (p *SubjectGameArgs) Write(oprot thrift.TProtocol) error

type SubjectGameResult

type SubjectGameResult struct {
	Success string `thrift:"success,0"`
}

func NewSubjectGameResult

func NewSubjectGameResult() *SubjectGameResult

func (*SubjectGameResult) Read

func (p *SubjectGameResult) Read(iprot thrift.TProtocol) error

func (*SubjectGameResult) String

func (p *SubjectGameResult) String() string

func (*SubjectGameResult) Write

func (p *SubjectGameResult) Write(oprot thrift.TProtocol) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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