session

package
v0.19.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package session provides in-memory storage of secure session details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session interface {
	Type() string
	Set(string, *envelope.Unsigned, *envelope.Unsigned, []byte, string) error
	SetIdentity(string, *envelope.Unsigned, *envelope.Unsigned) error
	ID() *identity.ID
	AuthID() *identity.ID
	Token() string
	Passphrase() []byte
	MasterKey() (*base64.Value, error)
	HasToken() bool
	HasPassphrase() bool
	Logout() error
	String() string
	Self() *apitypes.Self
}

Session is the interface for access to secure session details.

func NewSession

func NewSession() Session

NewSession returns the default implementation of the Session interface for a user or machine depending on the passed type.

Jump to

Keyboard shortcuts

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