datastore

package
v0.0.0-...-f1366d8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	CreateSession(user Session) (int64, error)
	GetSession(username, sessionID string) (*Session, error)
}

DataStore is the interfaces for the data repository

type Session

type Session struct {
	ID        int64
	Username  string
	SessionID string
	Expires   time.Time
}

Session details for a specific user session

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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