application

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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 App

type App struct {
	Config  *model.Config
	Cookies *map[string]*session.Session
}

func (*App) DeleteCookie

func (app *App) DeleteCookie(c interface{}, name string)

func (*App) DeleteSession

func (app *App) DeleteSession(uuid *string) error

func (*App) GetConfig

func (app *App) GetConfig() *model.Config

func (*App) GetCookie

func (app *App) GetCookie(c interface{}, name string) (string, error)

func (*App) GetCookies

func (app *App) GetCookies() *map[string]*session.Session

func (*App) GetSessionFromStore

func (app *App) GetSessionFromStore(uuid *string) (s *session.Session, e error)

func (*App) SetCookie

func (app *App) SetCookie(c interface{}, name string, value string)

func (*App) SetSession

func (app *App) SetSession(session *session.Session) (id string, e error)

func (*App) SetSessionContext

func (app *App) SetSessionContext(c interface{}, s *session.Session)

func (*App) SetSessionCookie

func (app *App) SetSessionCookie(c interface{}, name string, value string)

type AwsAdminApp

type AwsAdminApp interface {
	SetSession(*session.Session) (id string, e error)
	GetSessionFromStore(uuid *string) (s *session.Session, e error)
	DeleteSession(uuid *string) error
	GetConfig() *model.Config
	SetCookie(c interface{}, name string, value string)
	GetCookie(c interface{}, name string) (string, error)
	DeleteCookie(c interface{}, name string)
	SetSessionCookie(c interface{}, name string, value string)
	SetSessionContext(c interface{}, s *session.Session)
	GetCookies() *map[string]*session.Session
}

Jump to

Keyboard shortcuts

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