phigroslibrary

package module
v0.0.0-...-6c27efa Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

PhigrosLibrary-thriftCilentGo

A thrift Cilent Generated For PhigrosLibrary

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var PhigrosBest19Result_Success_DEFAULT []*SongLevel
View Source
var PhigrosBestnResult_Success_DEFAULT []*SongLevel
View Source
var PhigrosSongExpectsResult_Success_DEFAULT []*SongExpect

Functions

This section is empty.

Types

type Level

type Level int64
const (
	Level_EZ Level = 0
	Level_HD Level = 1
	Level_IN Level = 2
	Level_AT Level = 3
)

func LevelFromString

func LevelFromString(s string) (Level, error)

func LevelPtr

func LevelPtr(v Level) *Level

func (Level) MarshalText

func (p Level) MarshalText() ([]byte, error)

func (*Level) Scan

func (p *Level) Scan(value interface{}) error

func (Level) String

func (p Level) String() string

func (*Level) UnmarshalText

func (p *Level) UnmarshalText(text []byte) error

func (*Level) Value

func (p *Level) Value() (driver.Value, error)

type Phigros

type Phigros interface {
	// Parameters:
	//  - SessionToken
	GetSaveUrl(ctx context.Context, sessionToken string) (_r *Summary, _err error)
	// Parameters:
	//  - SaveUrl
	Best19(ctx context.Context, saveUrl string) (_r []*SongLevel, _err error)
	// Parameters:
	//  - SaveUrl
	//  - Num
	Bestn(ctx context.Context, saveUrl string, num int8) (_r []*SongLevel, _err error)
	// Parameters:
	//  - SaveUrl
	SongExpects(ctx context.Context, saveUrl string) (_r []*SongExpect, _err error)
}

type PhigrosBest19Args

type PhigrosBest19Args struct {
	SaveUrl string `thrift:"saveUrl,1" db:"saveUrl" json:"saveUrl"`
}

Attributes:

  • SaveUrl

func NewPhigrosBest19Args

func NewPhigrosBest19Args() *PhigrosBest19Args

func (*PhigrosBest19Args) GetSaveUrl

func (p *PhigrosBest19Args) GetSaveUrl() string

func (*PhigrosBest19Args) Read

func (p *PhigrosBest19Args) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBest19Args) ReadField1

func (p *PhigrosBest19Args) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBest19Args) String

func (p *PhigrosBest19Args) String() string

func (*PhigrosBest19Args) Write

func (p *PhigrosBest19Args) Write(ctx context.Context, oprot thrift.TProtocol) error

type PhigrosBest19Result

type PhigrosBest19Result struct {
	Success []*SongLevel `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewPhigrosBest19Result

func NewPhigrosBest19Result() *PhigrosBest19Result

func (*PhigrosBest19Result) GetSuccess

func (p *PhigrosBest19Result) GetSuccess() []*SongLevel

func (*PhigrosBest19Result) IsSetSuccess

func (p *PhigrosBest19Result) IsSetSuccess() bool

func (*PhigrosBest19Result) Read

func (*PhigrosBest19Result) ReadField0

func (p *PhigrosBest19Result) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBest19Result) String

func (p *PhigrosBest19Result) String() string

func (*PhigrosBest19Result) Write

type PhigrosBestnArgs

type PhigrosBestnArgs struct {
	SaveUrl string `thrift:"saveUrl,1" db:"saveUrl" json:"saveUrl"`
	Num     int8   `thrift:"num,2" db:"num" json:"num"`
}

Attributes:

  • SaveUrl
  • Num

func NewPhigrosBestnArgs

func NewPhigrosBestnArgs() *PhigrosBestnArgs

func (*PhigrosBestnArgs) GetNum

func (p *PhigrosBestnArgs) GetNum() int8

func (*PhigrosBestnArgs) GetSaveUrl

func (p *PhigrosBestnArgs) GetSaveUrl() string

func (*PhigrosBestnArgs) Read

func (p *PhigrosBestnArgs) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBestnArgs) ReadField1

func (p *PhigrosBestnArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBestnArgs) ReadField2

func (p *PhigrosBestnArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBestnArgs) String

func (p *PhigrosBestnArgs) String() string

func (*PhigrosBestnArgs) Write

func (p *PhigrosBestnArgs) Write(ctx context.Context, oprot thrift.TProtocol) error

type PhigrosBestnResult

type PhigrosBestnResult struct {
	Success []*SongLevel `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewPhigrosBestnResult

func NewPhigrosBestnResult() *PhigrosBestnResult

func (*PhigrosBestnResult) GetSuccess

func (p *PhigrosBestnResult) GetSuccess() []*SongLevel

func (*PhigrosBestnResult) IsSetSuccess

func (p *PhigrosBestnResult) IsSetSuccess() bool

func (*PhigrosBestnResult) Read

func (*PhigrosBestnResult) ReadField0

func (p *PhigrosBestnResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosBestnResult) String

func (p *PhigrosBestnResult) String() string

func (*PhigrosBestnResult) Write

func (p *PhigrosBestnResult) Write(ctx context.Context, oprot thrift.TProtocol) error

type PhigrosClient

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

func NewPhigrosClient

func NewPhigrosClient(c thrift.TClient) *PhigrosClient

func NewPhigrosClientProtocol

func NewPhigrosClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PhigrosClient

func (*PhigrosClient) Best19

func (p *PhigrosClient) Best19(ctx context.Context, saveUrl string) (_r []*SongLevel, _err error)

Parameters:

  • SaveUrl

func (*PhigrosClient) Bestn

func (p *PhigrosClient) Bestn(ctx context.Context, saveUrl string, num int8) (_r []*SongLevel, _err error)

Parameters:

  • SaveUrl
  • Num

func (*PhigrosClient) Client_

func (p *PhigrosClient) Client_() thrift.TClient

func (*PhigrosClient) GetSaveUrl

func (p *PhigrosClient) GetSaveUrl(ctx context.Context, sessionToken string) (_r *Summary, _err error)

Parameters:

  • SessionToken

func (*PhigrosClient) LastResponseMeta_

func (p *PhigrosClient) LastResponseMeta_() thrift.ResponseMeta

func (*PhigrosClient) SetLastResponseMeta_

func (p *PhigrosClient) SetLastResponseMeta_(meta thrift.ResponseMeta)

func (*PhigrosClient) SongExpects

func (p *PhigrosClient) SongExpects(ctx context.Context, saveUrl string) (_r []*SongExpect, _err error)

Parameters:

  • SaveUrl

type PhigrosGetSaveUrlArgs

type PhigrosGetSaveUrlArgs struct {
	SessionToken string `thrift:"sessionToken,1" db:"sessionToken" json:"sessionToken"`
}

Attributes:

  • SessionToken

func NewPhigrosGetSaveUrlArgs

func NewPhigrosGetSaveUrlArgs() *PhigrosGetSaveUrlArgs

func (*PhigrosGetSaveUrlArgs) GetSessionToken

func (p *PhigrosGetSaveUrlArgs) GetSessionToken() string

func (*PhigrosGetSaveUrlArgs) Read

func (*PhigrosGetSaveUrlArgs) ReadField1

func (p *PhigrosGetSaveUrlArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosGetSaveUrlArgs) String

func (p *PhigrosGetSaveUrlArgs) String() string

func (*PhigrosGetSaveUrlArgs) Write

type PhigrosGetSaveUrlResult

type PhigrosGetSaveUrlResult struct {
	Success *Summary `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewPhigrosGetSaveUrlResult

func NewPhigrosGetSaveUrlResult() *PhigrosGetSaveUrlResult

func (*PhigrosGetSaveUrlResult) GetSuccess

func (p *PhigrosGetSaveUrlResult) GetSuccess() *Summary

func (*PhigrosGetSaveUrlResult) IsSetSuccess

func (p *PhigrosGetSaveUrlResult) IsSetSuccess() bool

func (*PhigrosGetSaveUrlResult) Read

func (*PhigrosGetSaveUrlResult) ReadField0

func (p *PhigrosGetSaveUrlResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosGetSaveUrlResult) String

func (p *PhigrosGetSaveUrlResult) String() string

func (*PhigrosGetSaveUrlResult) Write

type PhigrosProcessor

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

func NewPhigrosProcessor

func NewPhigrosProcessor(handler Phigros) *PhigrosProcessor

func (*PhigrosProcessor) AddToProcessorMap

func (p *PhigrosProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*PhigrosProcessor) GetProcessorFunction

func (p *PhigrosProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*PhigrosProcessor) Process

func (p *PhigrosProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*PhigrosProcessor) ProcessorMap

func (p *PhigrosProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

type PhigrosSongExpectsArgs

type PhigrosSongExpectsArgs struct {
	SaveUrl string `thrift:"saveUrl,1" db:"saveUrl" json:"saveUrl"`
}

Attributes:

  • SaveUrl

func NewPhigrosSongExpectsArgs

func NewPhigrosSongExpectsArgs() *PhigrosSongExpectsArgs

func (*PhigrosSongExpectsArgs) GetSaveUrl

func (p *PhigrosSongExpectsArgs) GetSaveUrl() string

func (*PhigrosSongExpectsArgs) Read

func (*PhigrosSongExpectsArgs) ReadField1

func (p *PhigrosSongExpectsArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosSongExpectsArgs) String

func (p *PhigrosSongExpectsArgs) String() string

func (*PhigrosSongExpectsArgs) Write

type PhigrosSongExpectsResult

type PhigrosSongExpectsResult struct {
	Success []*SongExpect `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewPhigrosSongExpectsResult

func NewPhigrosSongExpectsResult() *PhigrosSongExpectsResult

func (*PhigrosSongExpectsResult) GetSuccess

func (p *PhigrosSongExpectsResult) GetSuccess() []*SongExpect

func (*PhigrosSongExpectsResult) IsSetSuccess

func (p *PhigrosSongExpectsResult) IsSetSuccess() bool

func (*PhigrosSongExpectsResult) Read

func (*PhigrosSongExpectsResult) ReadField0

func (p *PhigrosSongExpectsResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*PhigrosSongExpectsResult) String

func (p *PhigrosSongExpectsResult) String() string

func (*PhigrosSongExpectsResult) Write

type SongExpect

type SongExpect struct {
	ID     string  `thrift:"id,1,required" db:"id" json:"id"`
	Level  Level   `thrift:"level,2,required" db:"level" json:"level"`
	Acc    float64 `thrift:"acc,3,required" db:"acc" json:"acc"`
	Expect float64 `thrift:"expect,4,required" db:"expect" json:"expect"`
}

Attributes:

  • ID
  • Level
  • Acc
  • Expect

func NewSongExpect

func NewSongExpect() *SongExpect

func (*SongExpect) Equals

func (p *SongExpect) Equals(other *SongExpect) bool

func (*SongExpect) GetAcc

func (p *SongExpect) GetAcc() float64

func (*SongExpect) GetExpect

func (p *SongExpect) GetExpect() float64

func (*SongExpect) GetID

func (p *SongExpect) GetID() string

func (*SongExpect) GetLevel

func (p *SongExpect) GetLevel() Level

func (*SongExpect) Read

func (p *SongExpect) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*SongExpect) ReadField1

func (p *SongExpect) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*SongExpect) ReadField2

func (p *SongExpect) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*SongExpect) ReadField3

func (p *SongExpect) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*SongExpect) ReadField4

func (p *SongExpect) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*SongExpect) String

func (p *SongExpect) String() string

func (*SongExpect) Validate

func (p *SongExpect) Validate() error

func (*SongExpect) Write

func (p *SongExpect) Write(ctx context.Context, oprot thrift.TProtocol) error

type SongLevel

type SongLevel struct {
	ID         string  `thrift:"id,1,required" db:"id" json:"id"`
	Level      Level   `thrift:"level,2,required" db:"level" json:"level"`
	S          int32   `thrift:"s,3,required" db:"s" json:"s"`
	A          float64 `thrift:"a,4,required" db:"a" json:"a"`
	C          bool    `thrift:"c,5,required" db:"c" json:"c"`
	Difficulty float64 `thrift:"difficulty,6,required" db:"difficulty" json:"difficulty"`
	Rks        float64 `thrift:"rks,7,required" db:"rks" json:"rks"`
}

Attributes:

  • ID
  • Level
  • S
  • A
  • C
  • Difficulty
  • Rks

func NewSongLevel

func NewSongLevel() *SongLevel

func (*SongLevel) Equals

func (p *SongLevel) Equals(other *SongLevel) bool

func (*SongLevel) GetA

func (p *SongLevel) GetA() float64

func (*SongLevel) GetC

func (p *SongLevel) GetC() bool

func (*SongLevel) GetDifficulty

func (p *SongLevel) GetDifficulty() float64

func (*SongLevel) GetID

func (p *SongLevel) GetID() string

func (*SongLevel) GetLevel

func (p *SongLevel) GetLevel() Level

func (*SongLevel) GetRks

func (p *SongLevel) GetRks() float64

func (*SongLevel) GetS

func (p *SongLevel) GetS() int32

func (*SongLevel) Read

func (p *SongLevel) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField1

func (p *SongLevel) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField2

func (p *SongLevel) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField3

func (p *SongLevel) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField4

func (p *SongLevel) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField5

func (p *SongLevel) ReadField5(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField6

func (p *SongLevel) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) ReadField7

func (p *SongLevel) ReadField7(ctx context.Context, iprot thrift.TProtocol) error

func (*SongLevel) String

func (p *SongLevel) String() string

func (*SongLevel) Validate

func (p *SongLevel) Validate() error

func (*SongLevel) Write

func (p *SongLevel) Write(ctx context.Context, oprot thrift.TProtocol) error

type Summary

type Summary struct {
	SaveUrl     string  `thrift:"saveUrl,1,required" db:"saveUrl" json:"saveUrl"`
	SaveVersion int8    `thrift:"saveVersion,2,required" db:"saveVersion" json:"saveVersion"`
	Challenge   int16   `thrift:"challenge,3,required" db:"challenge" json:"challenge"`
	Rks         float64 `thrift:"rks,4,required" db:"rks" json:"rks"`
	GameVersion int8    `thrift:"gameVersion,5,required" db:"gameVersion" json:"gameVersion"`
	Avatar      string  `thrift:"avatar,6,required" db:"avatar" json:"avatar"`
}

Attributes:

  • SaveUrl
  • SaveVersion
  • Challenge
  • Rks
  • GameVersion
  • Avatar
var PhigrosGetSaveUrlResult_Success_DEFAULT *Summary

func NewSummary

func NewSummary() *Summary

func (*Summary) Equals

func (p *Summary) Equals(other *Summary) bool

func (*Summary) GetAvatar

func (p *Summary) GetAvatar() string

func (*Summary) GetChallenge

func (p *Summary) GetChallenge() int16

func (*Summary) GetGameVersion

func (p *Summary) GetGameVersion() int8

func (*Summary) GetRks

func (p *Summary) GetRks() float64

func (*Summary) GetSaveUrl

func (p *Summary) GetSaveUrl() string

func (*Summary) GetSaveVersion

func (p *Summary) GetSaveVersion() int8

func (*Summary) Read

func (p *Summary) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) ReadField1

func (p *Summary) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) ReadField2

func (p *Summary) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) ReadField3

func (p *Summary) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) ReadField4

func (p *Summary) ReadField4(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) ReadField5

func (p *Summary) ReadField5(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) ReadField6

func (p *Summary) ReadField6(ctx context.Context, iprot thrift.TProtocol) error

func (*Summary) String

func (p *Summary) String() string

func (*Summary) Validate

func (p *Summary) Validate() error

func (*Summary) Write

func (p *Summary) Write(ctx context.Context, 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