services

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotGetFromRemote = errors.New("cannot get from remote")

Functions

This section is empty.

Types

type GameDataService

type GameDataService struct {
	ItemService *ItemService
	// contains filtered or unexported fields
}

func NewGameDataService

func NewGameDataService(itemService *ItemService, client *client.Penguin) *GameDataService

func (*GameDataService) RenderNewEvent

func (s *GameDataService) RenderNewEvent(ctx context.Context, sourceUrl string, info *gamedata.NewEventBasicInfo) (*gamedata.RenderedObjects, error)

func (*GameDataService) UpdateNewEvent

func (s *GameDataService) UpdateNewEvent(ctx context.Context, renderedObjects *gamedata.RenderedObjects) error

type ItemService

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

func NewItemService

func NewItemService(http *client.Penguin) *ItemService

func (*ItemService) GetItems

func (s *ItemService) GetItems(ctx context.Context) ([]*models.Item, error)

func (*ItemService) GetItemsMapByArkId

func (s *ItemService) GetItemsMapByArkId(ctx context.Context) (map[string]*models.Item, error)

Jump to

Keyboard shortcuts

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