flash

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: MIT Imports: 2 Imported by: 5

README

Flash

Build Status Coverage Status Go Report Card GoDoc

Flash Message

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flash

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

Flash type

func Decode

func Decode(b []byte) (*Flash, error)

Decode decodes flash data

func New

func New() *Flash

New creates new flash

func (*Flash) Add

func (f *Flash) Add(key string, value interface{})

Add adds value to flash

func (*Flash) Changed added in v0.2.0

func (f *Flash) Changed() bool

Changed returns true if value changed

func (*Flash) Clear

func (f *Flash) Clear()

Clear deletes all data

func (*Flash) Clone added in v0.1.1

func (f *Flash) Clone() *Flash

Clone clones flash

func (*Flash) Count added in v0.2.0

func (f *Flash) Count() int

Count returns count of flash's keys

func (*Flash) Del

func (f *Flash) Del(key string)

Del deletes key from flash

func (*Flash) Encode

func (f *Flash) Encode() ([]byte, error)

Encode encodes flash

func (*Flash) Get

func (f *Flash) Get(key string) interface{}

Get gets value from flash

func (*Flash) GetBool added in v0.3.1

func (f *Flash) GetBool(key string) bool

GetBool gets bool from flash

func (*Flash) GetFloat32 added in v0.3.0

func (f *Flash) GetFloat32(key string) float32

GetFloat32 gets float32 from flash

func (*Flash) GetFloat64 added in v0.3.0

func (f *Flash) GetFloat64(key string) float64

GetFloat64 gets float64 from flash

func (*Flash) GetInt added in v0.3.0

func (f *Flash) GetInt(key string) int

GetInt gets int from flash

func (*Flash) GetInt64 added in v0.3.0

func (f *Flash) GetInt64(key string) int64

GetInt64 gets int64 from flash

func (*Flash) GetString added in v0.3.0

func (f *Flash) GetString(key string) string

GetString gets string from flash

func (*Flash) Has

func (f *Flash) Has(key string) bool

Has checks is flash has a given key

func (*Flash) Set

func (f *Flash) Set(key string, value interface{})

Set sets value to flash

func (*Flash) Values added in v0.2.0

func (f *Flash) Values(key string) []interface{}

Values returns slice of given key

Jump to

Keyboard shortcuts

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