cookie

package
Version: v0.0.0-...-724c8d0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package cookie is to handle cookies

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieChangeEvent

type CookieChangeEvent struct {
	domcore.Event
}

class: CookieChangeEvent

func CookieChangeEventFromJS

func CookieChangeEventFromJS(value js.Wrapper) *CookieChangeEvent

CookieChangeEventFromJS is casting a js.Wrapper into CookieChangeEvent.

func NewCookieChangeEvent

func NewCookieChangeEvent(_type string, eventInitDict *CookieChangeEventInit) (_result *CookieChangeEvent)

func (*CookieChangeEvent) Changed

func (_this *CookieChangeEvent) Changed() []*CookieListItem

Changed returning attribute 'changed' with type []CookieListItem (idl: sequence<CookieListItem>).

func (*CookieChangeEvent) Deleted

func (_this *CookieChangeEvent) Deleted() []*CookieListItem

Deleted returning attribute 'deleted' with type []CookieListItem (idl: sequence<CookieListItem>).

type CookieChangeEventInit

type CookieChangeEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Changed    []*CookieListItem
	Deleted    []*CookieListItem
}

dictionary: CookieChangeEventInit

func CookieChangeEventInitFromJS

func CookieChangeEventInitFromJS(value js.Wrapper) *CookieChangeEventInit

CookieChangeEventInitFromJS is allocating a new CookieChangeEventInit object and copy all values from input javascript object

func (*CookieChangeEventInit) JSValue

func (_this *CookieChangeEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CookieListItem

type CookieListItem struct {
	Name     string
	Value    string
	Domain   *string
	Path     string
	Expires  *int
	Secure   bool
	SameSite CookieSameSite
}

dictionary: CookieListItem

func CookieListItemFromJS

func CookieListItemFromJS(value js.Wrapper) *CookieListItem

CookieListItemFromJS is allocating a new CookieListItem object and copy all values from input javascript object

func (*CookieListItem) JSValue

func (_this *CookieListItem) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CookieMatchType

type CookieMatchType int

enum: CookieMatchType

const (
	EqualsCookieMatchType CookieMatchType = iota
	StartsWithCookieMatchType
)

func CookieMatchTypeFromJS

func CookieMatchTypeFromJS(value js.Value) CookieMatchType

CookieMatchTypeFromJS is converting a javascript value into a CookieMatchType enum value.

func (*CookieMatchType) JSValue

func (this *CookieMatchType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CookieMatchType) Value

func (this CookieMatchType) Value() string

Value is converting this into javascript defined string value

type CookieSameSite

type CookieSameSite int

enum: CookieSameSite

const (
	StrictCookieSameSite CookieSameSite = iota
	LaxCookieSameSite
	UnrestrictedCookieSameSite
)

func CookieSameSiteFromJS

func CookieSameSiteFromJS(value js.Value) CookieSameSite

CookieSameSiteFromJS is converting a javascript value into a CookieSameSite enum value.

func (*CookieSameSite) JSValue

func (this *CookieSameSite) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (CookieSameSite) Value

func (this CookieSameSite) Value() string

Value is converting this into javascript defined string value

type CookieStore

type CookieStore struct {
	domcore.EventTarget
}

class: CookieStore

func CookieStoreFromJS

func CookieStoreFromJS(value js.Wrapper) *CookieStore

CookieStoreFromJS is casting a js.Wrapper into CookieStore.

func (*CookieStore) AddEventChange

func (_this *CookieStore) AddEventChange(listener func(event *CookieChangeEvent, currentTarget *CookieStore)) js.Func

AddChange is adding doing AddEventListener for 'Change' on target. This method is returning allocated javascript function that need to be released.

func (*CookieStore) Delete

func (_this *CookieStore) Delete(name string) (_result *javascript.PromiseVoid)

func (*CookieStore) Delete2

func (_this *CookieStore) Delete2(options *CookieStoreDeleteOptions) (_result *javascript.PromiseVoid)

func (*CookieStore) Get

func (_this *CookieStore) Get(name string) (_result *PromiseNilCookieListItem)

func (*CookieStore) Get2

func (_this *CookieStore) Get2(options *CookieStoreGetOptions) (_result *PromiseNilCookieListItem)

func (*CookieStore) GetAll

func (_this *CookieStore) GetAll(name string) (_result *PromiseSequenceCookieListItem)

func (*CookieStore) GetAll2

func (_this *CookieStore) GetAll2(options *CookieStoreGetOptions) (_result *PromiseSequenceCookieListItem)

func (*CookieStore) GetChangeSubscriptions

func (_this *CookieStore) GetChangeSubscriptions() (_result *PromiseSequenceCookieStoreGetOptions)

func (*CookieStore) OnChange

func (_this *CookieStore) OnChange() domcore.EventHandlerFunc

OnChange returning attribute 'onchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*CookieStore) Set

func (_this *CookieStore) Set(name string, value string, options *CookieStoreSetOptions) (_result *javascript.PromiseVoid)

func (*CookieStore) Set2

func (_this *CookieStore) Set2(options *CookieStoreSetExtraOptions) (_result *javascript.PromiseVoid)

func (*CookieStore) SetOnChange

func (_this *CookieStore) SetOnChange(listener func(event *CookieChangeEvent, currentTarget *CookieStore)) js.Func

SetOnChange is assigning a function to 'onchange'. This This method is returning allocated javascript function that need to be released.

func (*CookieStore) SubscribeToChanges

func (_this *CookieStore) SubscribeToChanges(subscriptions []*CookieStoreGetOptions) (_result *javascript.PromiseVoid)

type CookieStoreDeleteOptions

type CookieStoreDeleteOptions struct {
	Name   string
	Domain *string
	Path   string
}

dictionary: CookieStoreDeleteOptions

func CookieStoreDeleteOptionsFromJS

func CookieStoreDeleteOptionsFromJS(value js.Wrapper) *CookieStoreDeleteOptions

CookieStoreDeleteOptionsFromJS is allocating a new CookieStoreDeleteOptions object and copy all values from input javascript object

func (*CookieStoreDeleteOptions) JSValue

func (_this *CookieStoreDeleteOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CookieStoreGetOptions

type CookieStoreGetOptions struct {
	Name      string
	Url       string
	MatchType CookieMatchType
}

dictionary: CookieStoreGetOptions

func CookieStoreGetOptionsFromJS

func CookieStoreGetOptionsFromJS(value js.Wrapper) *CookieStoreGetOptions

CookieStoreGetOptionsFromJS is allocating a new CookieStoreGetOptions object and copy all values from input javascript object

func (*CookieStoreGetOptions) JSValue

func (_this *CookieStoreGetOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CookieStoreSetExtraOptions

type CookieStoreSetExtraOptions struct {
	Expires  *int
	Domain   *string
	Path     string
	Secure   bool
	SameSite CookieSameSite
	Name     string
	Value    string
}

dictionary: CookieStoreSetExtraOptions

func CookieStoreSetExtraOptionsFromJS

func CookieStoreSetExtraOptionsFromJS(value js.Wrapper) *CookieStoreSetExtraOptions

CookieStoreSetExtraOptionsFromJS is allocating a new CookieStoreSetExtraOptions object and copy all values from input javascript object

func (*CookieStoreSetExtraOptions) JSValue

func (_this *CookieStoreSetExtraOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CookieStoreSetOptions

type CookieStoreSetOptions struct {
	Expires  *int
	Domain   *string
	Path     string
	Secure   bool
	SameSite CookieSameSite
}

dictionary: CookieStoreSetOptions

func CookieStoreSetOptionsFromJS

func CookieStoreSetOptionsFromJS(value js.Wrapper) *CookieStoreSetOptions

CookieStoreSetOptionsFromJS is allocating a new CookieStoreSetOptions object and copy all values from input javascript object

func (*CookieStoreSetOptions) JSValue

func (_this *CookieStoreSetOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type ExtendableCookieChangeEvent

type ExtendableCookieChangeEvent struct {
	domcore.ExtendableEvent
}

class: ExtendableCookieChangeEvent

func ExtendableCookieChangeEventFromJS

func ExtendableCookieChangeEventFromJS(value js.Wrapper) *ExtendableCookieChangeEvent

ExtendableCookieChangeEventFromJS is casting a js.Wrapper into ExtendableCookieChangeEvent.

func NewExtendableCookieChangeEvent

func NewExtendableCookieChangeEvent(_type string, eventInitDict *ExtendableCookieChangeEventInit) (_result *ExtendableCookieChangeEvent)

func (*ExtendableCookieChangeEvent) Changed

func (_this *ExtendableCookieChangeEvent) Changed() []*CookieListItem

Changed returning attribute 'changed' with type []CookieListItem (idl: sequence<CookieListItem>).

func (*ExtendableCookieChangeEvent) Deleted

func (_this *ExtendableCookieChangeEvent) Deleted() []*CookieListItem

Deleted returning attribute 'deleted' with type []CookieListItem (idl: sequence<CookieListItem>).

type ExtendableCookieChangeEventInit

type ExtendableCookieChangeEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Changed    []*CookieListItem
	Deleted    []*CookieListItem
}

dictionary: ExtendableCookieChangeEventInit

func ExtendableCookieChangeEventInitFromJS

func ExtendableCookieChangeEventInitFromJS(value js.Wrapper) *ExtendableCookieChangeEventInit

ExtendableCookieChangeEventInitFromJS is allocating a new ExtendableCookieChangeEventInit object and copy all values from input javascript object

func (*ExtendableCookieChangeEventInit) JSValue

func (_this *ExtendableCookieChangeEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseNilCookieListItem

type PromiseNilCookieListItem struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseNilCookieListItemFromJS

func PromiseNilCookieListItemFromJS(value js.Wrapper) *PromiseNilCookieListItem

PromiseNilCookieListItemFromJS is casting a js.Wrapper into PromiseNilCookieListItem.

func (*PromiseNilCookieListItem) Catch

func (*PromiseNilCookieListItem) Finally

func (_this *PromiseNilCookieListItem) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseNilCookieListItem)

func (*PromiseNilCookieListItem) JSValue

func (_this *PromiseNilCookieListItem) JSValue() js.Value

func (*PromiseNilCookieListItem) Then

type PromiseNilCookieListItemOnFulfilled

type PromiseNilCookieListItemOnFulfilled js.Func

PromiseNilCookieListItemOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseNilCookieListItemOnFulfilledFunc

type PromiseNilCookieListItemOnFulfilledFunc func(value *CookieListItem)

callback: PromiseTemplateOnFulfilled

func PromiseNilCookieListItemOnFulfilledFromJS

func PromiseNilCookieListItemOnFulfilledFromJS(_value js.Value) PromiseNilCookieListItemOnFulfilledFunc

type PromiseNilCookieListItemOnRejected

type PromiseNilCookieListItemOnRejected js.Func

PromiseNilCookieListItemOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseNilCookieListItemOnRejectedFunc

type PromiseNilCookieListItemOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilCookieListItemOnRejectedFromJS

func PromiseNilCookieListItemOnRejectedFromJS(_value js.Value) PromiseNilCookieListItemOnRejectedFunc

type PromiseSequenceCookieListItem

type PromiseSequenceCookieListItem struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseSequenceCookieListItemFromJS

func PromiseSequenceCookieListItemFromJS(value js.Wrapper) *PromiseSequenceCookieListItem

PromiseSequenceCookieListItemFromJS is casting a js.Wrapper into PromiseSequenceCookieListItem.

func (*PromiseSequenceCookieListItem) Catch

func (*PromiseSequenceCookieListItem) Finally

func (*PromiseSequenceCookieListItem) JSValue

func (_this *PromiseSequenceCookieListItem) JSValue() js.Value

func (*PromiseSequenceCookieListItem) Then

type PromiseSequenceCookieListItemOnFulfilled

type PromiseSequenceCookieListItemOnFulfilled js.Func

PromiseSequenceCookieListItemOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseSequenceCookieListItemOnFulfilledFunc

type PromiseSequenceCookieListItemOnFulfilledFunc func(value []*CookieListItem)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceCookieListItemOnFulfilledFromJS

func PromiseSequenceCookieListItemOnFulfilledFromJS(_value js.Value) PromiseSequenceCookieListItemOnFulfilledFunc

type PromiseSequenceCookieListItemOnRejected

type PromiseSequenceCookieListItemOnRejected js.Func

PromiseSequenceCookieListItemOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseSequenceCookieListItemOnRejectedFunc

type PromiseSequenceCookieListItemOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceCookieListItemOnRejectedFromJS

func PromiseSequenceCookieListItemOnRejectedFromJS(_value js.Value) PromiseSequenceCookieListItemOnRejectedFunc

type PromiseSequenceCookieStoreGetOptions

type PromiseSequenceCookieStoreGetOptions struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromiseSequenceCookieStoreGetOptionsFromJS

func PromiseSequenceCookieStoreGetOptionsFromJS(value js.Wrapper) *PromiseSequenceCookieStoreGetOptions

PromiseSequenceCookieStoreGetOptionsFromJS is casting a js.Wrapper into PromiseSequenceCookieStoreGetOptions.

func (*PromiseSequenceCookieStoreGetOptions) Catch

func (*PromiseSequenceCookieStoreGetOptions) Finally

func (*PromiseSequenceCookieStoreGetOptions) JSValue

type PromiseSequenceCookieStoreGetOptionsOnFulfilled

type PromiseSequenceCookieStoreGetOptionsOnFulfilled js.Func

PromiseSequenceCookieStoreGetOptionsOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc

type PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc func(value []*CookieStoreGetOptions)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceCookieStoreGetOptionsOnFulfilledFromJS

func PromiseSequenceCookieStoreGetOptionsOnFulfilledFromJS(_value js.Value) PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc

type PromiseSequenceCookieStoreGetOptionsOnRejected

type PromiseSequenceCookieStoreGetOptionsOnRejected js.Func

PromiseSequenceCookieStoreGetOptionsOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseSequenceCookieStoreGetOptionsOnRejectedFunc

type PromiseSequenceCookieStoreGetOptionsOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceCookieStoreGetOptionsOnRejectedFromJS

func PromiseSequenceCookieStoreGetOptionsOnRejectedFromJS(_value js.Value) PromiseSequenceCookieStoreGetOptionsOnRejectedFunc

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL