session

package
v0.0.0-...-57e0ee5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 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 Session

type Session struct {
	ID              uuid.UUID          `json:"id"`
	Instance        *instance.Instance `json:"instance"`
	Location        tile.Location      `json:"location"`
	BackgroundImage image.Image        `json:omit`
}

func Find

func Find(sessionID string) (*Session, error)

func NewSession

func NewSession(instance *instance.Instance, x, y int) (*Session, error)

func Open

func Open(instance *instance.Instance, sessionID string) (*Session, error)

func (*Session) ReadBackgroundImage

func (s *Session) ReadBackgroundImage() ([]byte, error)

func (*Session) UpdateBackgroundImage

func (s *Session) UpdateBackgroundImage(data []byte) error

Jump to

Keyboard shortcuts

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