steam

package
v0.0.0-...-f537024 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccDetails

type AccDetails struct {
	TotpSecret string
	Username   string
	Password   string
}

type Client

type Client struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, config *Config) *Client

func (*Client) AddFriend

func (c *Client) AddFriend(id steamid.SteamId)

func (*Client) Done

func (c *Client) Done() <-chan struct{}

func (*Client) Friends

func (c *Client) Friends() map[steamid.SteamId]socialcache.Friend

func (*Client) NicknameByID

func (c *Client) NicknameByID(id steamid.SteamId) string

func (*Client) Raw

func (c *Client) Raw() *steam.Client

func (*Client) RemoveFriend

func (c *Client) RemoveFriend(id steamid.SteamId)

func (*Client) RenameFriend

func (c *Client) RenameFriend(id steamid.SteamId, nickname string)

type Config

type Config struct {
	Details              AccDetails
	OnRelationshipChange func(steamlang.EFriendRelationship, steamid.SteamId)
	OnNicknameChange     func(steamid.SteamId, string, string)
	OnLogin              func()
	OnFriendsLoad        func()
	OnNicknamesLoad      func()
	OnDisconnect         func()
	OnRawEvent           func(interface{})
}

Jump to

Keyboard shortcuts

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