session

package
v0.0.0-...-5184234 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID uuid.UUID

	GameID   uuid.UUID
	Username string
	// contains filtered or unexported fields
}

func New

func New(gameID uuid.UUID, username string, events chan<- *mafiapb.GameEvent) *Session

func (*Session) SendNonBlocking

func (s *Session) SendNonBlocking(event *mafiapb.GameEvent) bool

Jump to

Keyboard shortcuts

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