sessionmgr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: CC0-1.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 SessionMgr

type SessionMgr struct {
	// contains filtered or unexported fields
}

SessionMgr ... holds one session per region provided to New()

func New

func New(defaultRegion string, regions []string) (*SessionMgr, error)

New ... returns a *SessionMgr after creating one session per region provided

func (*SessionMgr) All

func (mgr *SessionMgr) All() []*session.Session

All ... returns all sessions stored inside the *SessionMgr

func (*SessionMgr) Default

func (mgr *SessionMgr) Default() (*session.Session, error)

Default ... returns the session matching the defaultRegion

func (*SessionMgr) Region

func (mgr *SessionMgr) Region(region string) (*session.Session, error)

Region ... returns the session whose region matches 'region'

Jump to

Keyboard shortcuts

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