session

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 6 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           string
	RefreshToken string
	Expiry       time.Time
}

type Stamp

type Stamp struct {
	PeerId string
	Serial uint64
}

type Stamped

type Stamped struct {
	Session
	Stamp
}

type Store

type Store interface {
	Get(string) (Session, bool)
	Set(Stamped) (Stamped, error)
	Stream(map[string]uint64) <-chan Stamped
}

func NewSessionStore

func NewSessionStore(peerId string) (Store, error)

Jump to

Keyboard shortcuts

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