flash

package
v0.0.0-...-86833b7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlasherType = reflect.TypeOf((*Flasher)(nil))

Functions

This section is empty.

Types

type Component

type Component struct {
	Store
}

func (*Component) Bootstrap

func (component *Component) Bootstrap(a *app.Kernel)

func (*Component) Handle

func (component *Component) Handle(ctx *request.Context)

type Flasher

type Flasher struct {
	Data map[string]interface{}
	// contains filtered or unexported fields
}

func GetFlasher

func GetFlasher(cdi *container.Registry) *Flasher

func (*Flasher) Contains

func (c *Flasher) Contains(key string) (isset bool)

func (*Flasher) CountMessages

func (c *Flasher) CountMessages() int

func (*Flasher) Get

func (c *Flasher) Get(key string) interface{}

func (*Flasher) Lookup

func (c *Flasher) Lookup(key string) (val interface{}, has bool)

func (*Flasher) Reflash

func (c *Flasher) Reflash(keys ...string)

func (*Flasher) Set

func (c *Flasher) Set(key string, val interface{})

type Session

type Session struct {
	Key string
}

func (Session) Read

func (sess Session) Read(r *request.Context) (map[string]interface{}, error)

func (Session) Save

func (sess Session) Save(r *request.Context, val map[string]interface{}) error

type Store

type Store interface {
	Read(*request.Context) (map[string]interface{}, error)
	Save(*request.Context, map[string]interface{}) error
}

Jump to

Keyboard shortcuts

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