service

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrShareGameRateLimited  = errors.New("share game rate limited")
	ErrShareGameNotFound     = errors.New("shared game not found")
	ErrShareGameUnauthorized = errors.New("invalid host key")
	ErrShareGameExpired      = errors.New("shared game expired")
)

Functions

This section is empty.

Types

type ModService

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

func NewModService

func NewModService(repo repository.ModRepository) *ModService

func (*ModService) CreateSharedGame added in v1.6.0

func (*ModService) DeleteSharedGame added in v1.6.0

func (s *ModService) DeleteSharedGame(sessionID, hostKey string) error

func (*ModService) GetJoinGameDownload added in v1.6.0

func (s *ModService) GetJoinGameDownload(sessionID string) (*restcommon.JoinGameDownloadResponse, error)

func (*ModService) GetJoinGameMeta added in v1.6.0

func (s *ModService) GetJoinGameMeta(sessionID string) (*restcommon.RoomInfo, error)

func (*ModService) GetModDetails added in v1.2.0

func (s *ModService) GetModDetails(modID string) (*model.ModDetails, error)

func (*ModService) GetModIds added in v1.2.0

func (s *ModService) GetModIds(after string, limit int) ([]string, string, error)

func (*ModService) GetModVersionDetails added in v1.2.0

func (s *ModService) GetModVersionDetails(modID, versionID string) (*model.ModVersionDetails, error)

func (*ModService) GetModVersionIds added in v1.2.0

func (s *ModService) GetModVersionIds(modID string) ([]string, error)

func (*ModService) UpdateSharedGameExpiration added in v1.8.1

func (s *ModService) UpdateSharedGameExpiration(sessionID, hostKey string) (*restcommon.ShareGameResponse, error)

type VersionInfoOptions added in v1.9.1

type VersionInfoOptions struct {
	HTTPClient *http.Client
	Token      string
	TTL        time.Duration
}

type VersionInfoProvider added in v1.9.1

type VersionInfoProvider interface {
	GetVersionInfo(ctx context.Context) (*restcommon.VersionInfo, error)
}

type VersionInfoService added in v1.9.1

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

func NewVersionInfoService added in v1.9.1

func NewVersionInfoService(opts VersionInfoOptions) *VersionInfoService

func (*VersionInfoService) GetVersionInfo added in v1.9.1

func (s *VersionInfoService) GetVersionInfo(ctx context.Context) (*restcommon.VersionInfo, error)

Jump to

Keyboard shortcuts

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