cookie

package
v0.0.0-...-8e4b865 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(cookieName string, opts ...Option) *Adapter

func (*Adapter) Delete

func (a *Adapter) Delete(writer http.ResponseWriter) error

func (*Adapter) Extract

func (a *Adapter) Extract(req *http.Request) (string, error)

func (*Adapter) Inject

func (a *Adapter) Inject(id string, writer http.ResponseWriter) error

type Option

type Option func(adapter *Adapter)

func WithCookieOption

func WithCookieOption(opt func(c *http.Cookie)) Option

Jump to

Keyboard shortcuts

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