job

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostView  = 5
	PostLike  = 10
	PostShare = 1
	PostLoop  = 3
)

Variables

Functions

func Login

func Login(hypergryphToken string) (config.Account, error)

func RefreshToken

func RefreshToken(account config.Account) (config.Account, error)

Types

type SignForumRecord added in v1.2.0

type SignForumRecord struct {
	GameId    string
	GameName  string
	HasSigned bool

	PostView  int
	PostLike  int
	PostShare int
	LoopCount int
}

func SignForumGame added in v1.2.0

func SignForumGame(game *skland.GameData, account config.Account) (record SignForumRecord, err error)

type SignForumRecords added in v1.2.0

type SignForumRecords []SignForumRecord

func SignForum added in v1.2.0

func SignForum(account config.Account) (SignForumRecords, error)

func SignForumGames added in v1.2.0

func SignForumGames(games []*skland.GameData, account config.Account) (SignForumRecords, error)

func (SignForumRecords) Name added in v1.2.0

func (rs SignForumRecords) Name() string

func (SignForumRecords) Success added in v1.2.0

func (rs SignForumRecords) Success() string

type SignGameRecord added in v1.2.0

type SignGameRecord struct {
	GameId        string
	GameName      string
	PlayerName    string
	PlayerUid     string
	PlayerChannel string
	HasSigned     bool
	Award         string
}

func SignGamePlayer added in v1.2.0

func SignGamePlayer(app *skland.PlayersByApp, player *skland.Player, account config.Account) (record SignGameRecord, err error)

type SignGameRecords added in v1.2.0

type SignGameRecords []SignGameRecord

func SignGame added in v1.2.0

func SignGame(account config.Account) (SignGameRecords, error)

func SignGameByApp added in v1.2.0

func SignGameByApp(apps []*skland.PlayersByApp, account config.Account) (SignGameRecords, error)

func (SignGameRecords) Name added in v1.2.0

func (rs SignGameRecords) Name() string

func (SignGameRecords) Success added in v1.2.0

func (rs SignGameRecords) Success() string

Jump to

Keyboard shortcuts

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