app

package
v0.0.0-...-e0496da Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstUpdate

func FirstUpdate()

Because in multithread and async, get db data can be old => Conflict in updating timestamp Therefore first run to update the latest data before can go cron

func HandleImage

func HandleImage(event config.Event) (string, error)

func InsertItemImage

func InsertItemImage(item struct {
	Type          string `json:"Type,omitempty"`
	Count         int    `json:"Count,omitempty"`
	Quality       int    `json:"Quality,omitempty"`
	ActiveSpells  []any  `json:"ActiveSpells,omitempty"`
	PassiveSpells []any  `json:"PassiveSpells,omitempty"`
}, bound image.Rectangle, rgba *image.RGBA) error

func InsertLineInventory

func InsertLineInventory(
	rgba *image.RGBA,
	dc *gg.Context,
	inv []struct {
		Type          string `json:"Type,omitempty"`
		Count         int    `json:"Count,omitempty"`
		Quality       int    `json:"Quality,omitempty"`
		ActiveSpells  []any  `json:"ActiveSpells,omitempty"`
		PassiveSpells []any  `json:"PassiveSpells,omitempty"`
	},
	line int,
	count int,
)

func LogError

func LogError(err error)

func NewCronScheduler

func NewCronScheduler() (*cron.Cron, error)

func ProcessKillDeathEvent

func ProcessKillDeathEvent(event config.Event)

ProcessKillDeathEvent returns timeStamp event string

func UpdateKillDeath

func UpdateKillDeath()

func UpdateMember

func UpdateMember()

Types

This section is empty.

Jump to

Keyboard shortcuts

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