common

package
v0.0.0-...-72cf494 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	ID       int    `json:"id"`
	Revision int    `json:"rev"`
	Path     string `json:"path"`
	Size     int    `json:"size"`
	PSize    int    `json:"psize"`
}

type Include

type Include struct {
	ID       int    `json:"id"`
	Revision int    `json:"rev"`
	Type     string `json:"type"`
}

type NewsEntry

type NewsEntry struct {
	ID     int       `json:"id"`
	Title  string    `json:"title"`
	Body   string    `json:"body"`
	Author string    `json:"author"`
	Time   time.Time `json:"time"`
}

type Package

type Package struct {
	ID          int       `json:"id"`
	Revision    int       `json:"rev"`
	Type        string    `json:"type"`
	Name        string    `json:"name"`
	Dataname    string    `json:"dataname,omitempty"`
	Author      string    `json:"author,omitempty"`
	AuthorName  string    `json:"authorname,omitempty"`
	AuthorIcon  string    `json:"authoricon,omitempty"`
	Description string    `json:"description,omitempty"`
	Data        []byte    `json:"data,omitempty"`
	Content     []Content `json:"content,omitempty"`
	Includes    []Include `json:"includes,omitempty"`
	Uploaded    time.Time `json:"uploaded,omitempty"`

	Downloads int `json:"downloads,omitempty"`
	Favorites int `json:"favorites,omitempty"`
	Goods     int `json:"goods,omitempty"`
	Bads      int `json:"bads,omitempty"`
}

func (Package) Marshal

func (pkg Package) Marshal() []byte

type PlayerSummaryInfo

type PlayerSummaryInfo struct {
	SteamID                  string `json:"steamid"`
	CommunityVisibilityState int    `json:"communityvisibilitystate"`
	ProfileState             int    `json:"profilestate"`
	PersonaName              string `json:"personaname"`
	LastLogoff               int    `json:"lastlogoff"`
	ProfileURL               string `json:"profileurl"`
	Avatar                   string `json:"avatar"`
	AvatarMedium             string `json:"avatarmedium"`
	AvatarFull               string `json:"avatarfull"`
}

type Upload

type Upload struct {
	Type     string
	Metadata string
	Include  string
	Data     []byte
}

type UserTicketInfo

type UserTicketInfo struct {
	Result          string `json:"result"`
	SteamID         string `json:"steamid"`
	OwnerSteamID    string `json:"ownersteamid"`
	VACBanned       bool   `json:"vacbanned"`
	PublisherBanned bool   `json:"publisherbanned"`
}

type VDF

type VDF map[string]any

func (VDF) Marshal

func (vdf VDF) Marshal() string

Jump to

Keyboard shortcuts

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