Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2026 Changes in this version + const EMsgClientGMSServerQuery + const EMsgClientHeartBeat + const EMsgClientHello + const EMsgClientLogOnResponse + const EMsgClientLoggedOff + const EMsgClientLogon + const EMsgGMSClientServerQueryResponse + const EMsgMulti + const EMsgServiceMethod + const EMsgServiceMethodCallFromClient + const EMsgServiceMethodCallFromClientNonAuthed + const EMsgServiceMethodResponse + const EResultAccessDenied + const EResultFail + const EResultOK + const NoJobID + func EncodeFrame(frame Frame, limits FrameLimits) ([]byte, error) + type Client struct + func New(opts ...ClientOption) (*Client, error) + func (c *Client) CallUnauthenticated(ctx context.Context, method string, body []byte) (Message, error) + func (c *Client) Close() error + func (c *Client) Connect(ctx context.Context, endpoint Endpoint) error + func (c *Client) LogonAnonymous(ctx context.Context) (*Session, error) + func (c *Client) LogonToken(ctx context.Context, details TokenLogonDetails) (*Session, error) + type ClientOption func(*clientConfig) error + func WithFrameLimits(limits FrameLimits) ClientOption + func WithWebSocketOption(option WebSocketOption) ClientOption + type Directory struct + BaseURL string + HTTPClient *http.Client + func (d *Directory) Get(ctx context.Context, query DirectoryQuery) ([]Endpoint, error) + type DirectoryError struct + Message string + func (e *DirectoryError) Error() string + type DirectoryQuery struct + CMType string + CellID uint32 + MaxCount uint32 + QoSLevel uint32 + Realm string + type Endpoint struct + Address string + DataCenter string + Legacy string + Load int32 + Realm string + Type string + WeightedLoad float64 + type Frame struct + Body []byte + EMsg uint32 + Header []byte + Proto bool + func DecodeFrame(encoded []byte, limits FrameLimits) (Frame, error) + func DecodeMulti(frame Frame, limits MultiLimits) ([]Frame, error) + type FrameLimits struct + MaxFrameSize int + MaxHeaderSize int + type HTTPError struct + Status string + StatusCode int + func (e *HTTPError) Error() string + type Header struct + ClientSessionID int32 + EResult int32 + ErrorMessage string + HasEResult bool + JobIDSource uint64 + JobIDTarget uint64 + SteamID uint64 + TargetJobName string + type JobError struct + EResult int32 + Message string + func (e *JobError) Error() string + type JobRequest struct + Body []byte + EMsg uint32 + ExpectedEMsg uint32 + RequireEResult bool + TargetJobName string + type LogoffError struct + EResult int32 + HasEResult bool + func (e *LogoffError) Error() string + type LogonError struct + EResult int32 + Message string + func (e *LogonError) Error() string + type Message struct + Body []byte + EMsg uint32 + Header Header + type MissingEResultError struct + func (MissingEResultError) Error() string + type MultiLimits struct + FrameLimits FrameLimits + MaxDepth int + MaxMessages int + MaxUncompressedBytes int + type Session struct + WebSocketConn *WebSocketConn + func (s *Session) Call(ctx context.Context, request JobRequest) (Message, error) + func (s *Session) Close() error + func (s *Session) ReadMessage(ctx context.Context) (Message, error) + type SessionState struct + CellID uint32 + HeartbeatInterval time.Duration + SessionID int32 + SteamID uint64 + type TokenLogonDetails struct + AccountName string + LoginID uint32 + RefreshToken string + SteamID uint64 + func (TokenLogonDetails) GoString() string + func (TokenLogonDetails) String() string + type WebSocketConn struct + func Dial(ctx context.Context, address string, opts ...WebSocketOption) (*WebSocketConn, error) + func (c *WebSocketConn) Close() error + func (c *WebSocketConn) ReadFrame(ctx context.Context, limits FrameLimits) (Frame, error) + func (c *WebSocketConn) WriteFrame(ctx context.Context, frame Frame, limits FrameLimits) error + type WebSocketOption func(*webSocketConfig) error + func WithHandshakeTimeout(timeout time.Duration) WebSocketOption + func WithHeader(key, value string) WebSocketOption + func WithIOTimeout(timeout time.Duration) WebSocketOption + func WithMessageSize(size int64) WebSocketOption