client

package
v0.0.0-...-98414d4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2016 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ID       uuid.UUID
	LastSeen time.Time

	GoogleUserID        string
	GoogleEmail         string
	GoogleEmailVerified bool
	// contains filtered or unexported fields
}

Client is a connected web client

func NewClient

func NewClient() *Client

NewClient returns a new *Client with a fresh ID

func SockClient

func SockClient(s *gotalk.Sock) *Client

SockClient extracts the *Client from the socket state

func (*Client) IsValid

func (c *Client) IsValid() bool

IsValid returns whether or not the Client is valid (not expired, invalidated)

func (*Client) Touch

func (c *Client) Touch()

Touch a client to update its LastSeen value

Jump to

Keyboard shortcuts

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