stores

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 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 CookieStore added in v2.1.0

type CookieStore struct {
	CookieName string
	DomainName string

	Cookies     []*http.Cookie
	CookieToSet *http.Cookie
	// contains filtered or unexported fields
}

func NewCookieStore added in v2.1.0

func NewCookieStore(hashKey, blockKey, domainName, cookieName string, isSecure bool) *CookieStore

func (*CookieStore) Delete added in v2.1.0

func (s *CookieStore) Delete(state string) error

func (*CookieStore) Get added in v2.1.0

func (s *CookieStore) Get(state string) ([]byte, error)

func (*CookieStore) Save added in v2.1.0

func (s *CookieStore) Save(state string, b []byte) error

type GocialStore

type GocialStore interface {
	Save(state string, gocial []byte) error
	Get(state string) ([]byte, error)
	Delete(state string) error
}

func NewMemoryStore

func NewMemoryStore() GocialStore

NewMemoryStore returns a poitner of memory Gocial instance store

Jump to

Keyboard shortcuts

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