steam

package
v0.0.0-...-fe78ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*steam.Client

	Session *Session
}

func NewClient

func NewClient(c *steam.Client) *Client

type ClientStateChanged

type ClientStateChanged struct {
	Transition *StateTransition
}

type ErrDisconnected

type ErrDisconnected struct{}

func (*ErrDisconnected) Error

func (*ErrDisconnected) Error() string

type ErrFailure

type ErrFailure struct {
	Reason string
}

func (*ErrFailure) Error

func (err *ErrFailure) Error() string

type ErrLogOnFailed

type ErrLogOnFailed struct {
	Reason string
}

func (*ErrLogOnFailed) Error

func (err *ErrLogOnFailed) Error() string

type ErrLoggedOff

type ErrLoggedOff struct {
	Reason string
}

func (*ErrLoggedOff) Error

func (err *ErrLoggedOff) Error() string

type ErrLostSession

type ErrLostSession struct{}

func (*ErrLostSession) Error

func (*ErrLostSession) Error() string

type ErrNoSession

type ErrNoSession struct {
	*nserr.Err
}

type Session

type Session struct {
	State          State
	LastTransition *StateTransition
	// contains filtered or unexported fields
}

func (*Session) IsReady

func (s *Session) IsReady() bool

func (*Session) StateChange

func (s *Session) StateChange(t *StateTransition)

type State

type State struct {
	Ready bool
}

type StateTransition

type StateTransition struct {
	Previous       State
	Next           State
	ReadyToUnready bool
	UnreadyToReady bool
}

func NewStateTransition

func NewStateTransition(prev, next State) *StateTransition

Jump to

Keyboard shortcuts

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