webapi: github.com/gowebapi/webapi/cookie Index | Files

package cookie

import "github.com/gowebapi/webapi/cookie"

Package cookie is to handle cookies

Index

Package Files

cookie.go doc.go

type CookieChangeEvent Uses

type CookieChangeEvent struct {
    domcore.Event
}

class: CookieChangeEvent

func CookieChangeEventFromJS Uses

func CookieChangeEventFromJS(value js.Wrapper) *CookieChangeEvent

CookieChangeEventFromJS is casting a js.Wrapper into CookieChangeEvent.

func NewCookieChangeEvent Uses

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

func (*CookieChangeEvent) Changed Uses

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

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

func (*CookieChangeEvent) Deleted Uses

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

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

type CookieChangeEventInit Uses

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

dictionary: CookieChangeEventInit

func CookieChangeEventInitFromJS Uses

func CookieChangeEventInitFromJS(value js.Wrapper) *CookieChangeEventInit

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

func (*CookieChangeEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type CookieListItem Uses

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

dictionary: CookieListItem

func CookieListItemFromJS Uses

func CookieListItemFromJS(value js.Wrapper) *CookieListItem

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

func (*CookieListItem) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type CookieMatchType Uses

type CookieMatchType int

enum: CookieMatchType

const (
    EqualsCookieMatchType CookieMatchType = iota
    StartsWithCookieMatchType
)

func CookieMatchTypeFromJS Uses

func CookieMatchTypeFromJS(value js.Value) CookieMatchType

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

func (*CookieMatchType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (CookieMatchType) Value Uses

func (this CookieMatchType) Value() string

Value is converting this into javascript defined string value

type CookieSameSite Uses

type CookieSameSite int

enum: CookieSameSite

const (
    StrictCookieSameSite CookieSameSite = iota
    LaxCookieSameSite
    UnrestrictedCookieSameSite
)

func CookieSameSiteFromJS Uses

func CookieSameSiteFromJS(value js.Value) CookieSameSite

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

func (*CookieSameSite) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (CookieSameSite) Value Uses

func (this CookieSameSite) Value() string

Value is converting this into javascript defined string value

type CookieStore Uses

type CookieStore struct {
    domcore.EventTarget
}

class: CookieStore

func CookieStoreFromJS Uses

func CookieStoreFromJS(value js.Wrapper) *CookieStore

CookieStoreFromJS is casting a js.Wrapper into CookieStore.

func (*CookieStore) AddEventChange Uses

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 Uses

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

func (*CookieStore) Delete2 Uses

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

func (*CookieStore) Get Uses

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

func (*CookieStore) Get2 Uses

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

func (*CookieStore) GetAll Uses

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

func (*CookieStore) GetAll2 Uses

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

func (*CookieStore) GetChangeSubscriptions Uses

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

func (*CookieStore) OnChange Uses

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

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

func (*CookieStore) Set Uses

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

func (*CookieStore) Set2 Uses

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

func (*CookieStore) SetOnChange Uses

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 Uses

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

type CookieStoreDeleteOptions Uses

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

dictionary: CookieStoreDeleteOptions

func CookieStoreDeleteOptionsFromJS Uses

func CookieStoreDeleteOptionsFromJS(value js.Wrapper) *CookieStoreDeleteOptions

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

func (*CookieStoreDeleteOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type CookieStoreGetOptions Uses

type CookieStoreGetOptions struct {
    Name      string
    Url       string
    MatchType CookieMatchType
}

dictionary: CookieStoreGetOptions

func CookieStoreGetOptionsFromJS Uses

func CookieStoreGetOptionsFromJS(value js.Wrapper) *CookieStoreGetOptions

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

func (*CookieStoreGetOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type CookieStoreSetExtraOptions Uses

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

dictionary: CookieStoreSetExtraOptions

func CookieStoreSetExtraOptionsFromJS Uses

func CookieStoreSetExtraOptionsFromJS(value js.Wrapper) *CookieStoreSetExtraOptions

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

func (*CookieStoreSetExtraOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type CookieStoreSetOptions Uses

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

dictionary: CookieStoreSetOptions

func CookieStoreSetOptionsFromJS Uses

func CookieStoreSetOptionsFromJS(value js.Wrapper) *CookieStoreSetOptions

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

func (*CookieStoreSetOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type ExtendableCookieChangeEvent Uses

type ExtendableCookieChangeEvent struct {
    domcore.ExtendableEvent
}

class: ExtendableCookieChangeEvent

func ExtendableCookieChangeEventFromJS Uses

func ExtendableCookieChangeEventFromJS(value js.Wrapper) *ExtendableCookieChangeEvent

ExtendableCookieChangeEventFromJS is casting a js.Wrapper into ExtendableCookieChangeEvent.

func NewExtendableCookieChangeEvent Uses

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

func (*ExtendableCookieChangeEvent) Changed Uses

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

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

func (*ExtendableCookieChangeEvent) Deleted Uses

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

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

type ExtendableCookieChangeEventInit Uses

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

dictionary: ExtendableCookieChangeEventInit

func ExtendableCookieChangeEventInitFromJS Uses

func ExtendableCookieChangeEventInitFromJS(value js.Wrapper) *ExtendableCookieChangeEventInit

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

func (*ExtendableCookieChangeEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PromiseNilCookieListItem Uses

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

class: Promise

func PromiseNilCookieListItemFromJS Uses

func PromiseNilCookieListItemFromJS(value js.Wrapper) *PromiseNilCookieListItem

PromiseNilCookieListItemFromJS is casting a js.Wrapper into PromiseNilCookieListItem.

func (*PromiseNilCookieListItem) Catch Uses

func (_this *PromiseNilCookieListItem) Catch(onRejected *PromiseNilCookieListItemOnRejected) (_result *PromiseNilCookieListItem)

func (*PromiseNilCookieListItem) Finally Uses

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

func (*PromiseNilCookieListItem) JSValue Uses

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

func (*PromiseNilCookieListItem) Then Uses

func (_this *PromiseNilCookieListItem) Then(onFulfilled *PromiseNilCookieListItemOnFulfilled, onRejected *PromiseNilCookieListItemOnRejected) (_result *PromiseNilCookieListItem)

type PromiseNilCookieListItemOnFulfilled Uses

type PromiseNilCookieListItemOnFulfilled js.Func

PromiseNilCookieListItemOnFulfilled is a javascript function type.

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

func PromiseNilCookieListItemOnFulfilledToJS Uses

func PromiseNilCookieListItemOnFulfilledToJS(callback PromiseNilCookieListItemOnFulfilledFunc) *PromiseNilCookieListItemOnFulfilled

type PromiseNilCookieListItemOnFulfilledFunc Uses

type PromiseNilCookieListItemOnFulfilledFunc func(value *CookieListItem)

callback: PromiseTemplateOnFulfilled

func PromiseNilCookieListItemOnFulfilledFromJS Uses

func PromiseNilCookieListItemOnFulfilledFromJS(_value js.Value) PromiseNilCookieListItemOnFulfilledFunc

type PromiseNilCookieListItemOnRejected Uses

type PromiseNilCookieListItemOnRejected js.Func

PromiseNilCookieListItemOnRejected is a javascript function type.

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

func PromiseNilCookieListItemOnRejectedToJS Uses

func PromiseNilCookieListItemOnRejectedToJS(callback PromiseNilCookieListItemOnRejectedFunc) *PromiseNilCookieListItemOnRejected

type PromiseNilCookieListItemOnRejectedFunc Uses

type PromiseNilCookieListItemOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseNilCookieListItemOnRejectedFromJS Uses

func PromiseNilCookieListItemOnRejectedFromJS(_value js.Value) PromiseNilCookieListItemOnRejectedFunc

type PromiseSequenceCookieListItem Uses

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

class: Promise

func PromiseSequenceCookieListItemFromJS Uses

func PromiseSequenceCookieListItemFromJS(value js.Wrapper) *PromiseSequenceCookieListItem

PromiseSequenceCookieListItemFromJS is casting a js.Wrapper into PromiseSequenceCookieListItem.

func (*PromiseSequenceCookieListItem) Catch Uses

func (_this *PromiseSequenceCookieListItem) Catch(onRejected *PromiseSequenceCookieListItemOnRejected) (_result *PromiseSequenceCookieListItem)

func (*PromiseSequenceCookieListItem) Finally Uses

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

func (*PromiseSequenceCookieListItem) JSValue Uses

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

func (*PromiseSequenceCookieListItem) Then Uses

func (_this *PromiseSequenceCookieListItem) Then(onFulfilled *PromiseSequenceCookieListItemOnFulfilled, onRejected *PromiseSequenceCookieListItemOnRejected) (_result *PromiseSequenceCookieListItem)

type PromiseSequenceCookieListItemOnFulfilled Uses

type PromiseSequenceCookieListItemOnFulfilled js.Func

PromiseSequenceCookieListItemOnFulfilled is a javascript function type.

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

func PromiseSequenceCookieListItemOnFulfilledToJS Uses

func PromiseSequenceCookieListItemOnFulfilledToJS(callback PromiseSequenceCookieListItemOnFulfilledFunc) *PromiseSequenceCookieListItemOnFulfilled

type PromiseSequenceCookieListItemOnFulfilledFunc Uses

type PromiseSequenceCookieListItemOnFulfilledFunc func(value []*CookieListItem)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceCookieListItemOnFulfilledFromJS Uses

func PromiseSequenceCookieListItemOnFulfilledFromJS(_value js.Value) PromiseSequenceCookieListItemOnFulfilledFunc

type PromiseSequenceCookieListItemOnRejected Uses

type PromiseSequenceCookieListItemOnRejected js.Func

PromiseSequenceCookieListItemOnRejected is a javascript function type.

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

func PromiseSequenceCookieListItemOnRejectedToJS Uses

func PromiseSequenceCookieListItemOnRejectedToJS(callback PromiseSequenceCookieListItemOnRejectedFunc) *PromiseSequenceCookieListItemOnRejected

type PromiseSequenceCookieListItemOnRejectedFunc Uses

type PromiseSequenceCookieListItemOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceCookieListItemOnRejectedFromJS Uses

func PromiseSequenceCookieListItemOnRejectedFromJS(_value js.Value) PromiseSequenceCookieListItemOnRejectedFunc

type PromiseSequenceCookieStoreGetOptions Uses

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

class: Promise

func PromiseSequenceCookieStoreGetOptionsFromJS Uses

func PromiseSequenceCookieStoreGetOptionsFromJS(value js.Wrapper) *PromiseSequenceCookieStoreGetOptions

PromiseSequenceCookieStoreGetOptionsFromJS is casting a js.Wrapper into PromiseSequenceCookieStoreGetOptions.

func (*PromiseSequenceCookieStoreGetOptions) Catch Uses

func (_this *PromiseSequenceCookieStoreGetOptions) Catch(onRejected *PromiseSequenceCookieStoreGetOptionsOnRejected) (_result *PromiseSequenceCookieStoreGetOptions)

func (*PromiseSequenceCookieStoreGetOptions) Finally Uses

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

func (*PromiseSequenceCookieStoreGetOptions) JSValue Uses

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

func (*PromiseSequenceCookieStoreGetOptions) Then Uses

func (_this *PromiseSequenceCookieStoreGetOptions) Then(onFulfilled *PromiseSequenceCookieStoreGetOptionsOnFulfilled, onRejected *PromiseSequenceCookieStoreGetOptionsOnRejected) (_result *PromiseSequenceCookieStoreGetOptions)

type PromiseSequenceCookieStoreGetOptionsOnFulfilled Uses

type PromiseSequenceCookieStoreGetOptionsOnFulfilled js.Func

PromiseSequenceCookieStoreGetOptionsOnFulfilled is a javascript function type.

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

func PromiseSequenceCookieStoreGetOptionsOnFulfilledToJS Uses

func PromiseSequenceCookieStoreGetOptionsOnFulfilledToJS(callback PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc) *PromiseSequenceCookieStoreGetOptionsOnFulfilled

type PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc Uses

type PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc func(value []*CookieStoreGetOptions)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceCookieStoreGetOptionsOnFulfilledFromJS Uses

func PromiseSequenceCookieStoreGetOptionsOnFulfilledFromJS(_value js.Value) PromiseSequenceCookieStoreGetOptionsOnFulfilledFunc

type PromiseSequenceCookieStoreGetOptionsOnRejected Uses

type PromiseSequenceCookieStoreGetOptionsOnRejected js.Func

PromiseSequenceCookieStoreGetOptionsOnRejected is a javascript function type.

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

func PromiseSequenceCookieStoreGetOptionsOnRejectedToJS Uses

func PromiseSequenceCookieStoreGetOptionsOnRejectedToJS(callback PromiseSequenceCookieStoreGetOptionsOnRejectedFunc) *PromiseSequenceCookieStoreGetOptionsOnRejected

type PromiseSequenceCookieStoreGetOptionsOnRejectedFunc Uses

type PromiseSequenceCookieStoreGetOptionsOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceCookieStoreGetOptionsOnRejectedFromJS Uses

func PromiseSequenceCookieStoreGetOptionsOnRejectedFromJS(_value js.Value) PromiseSequenceCookieStoreGetOptionsOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package cookie imports 3 packages (graph) and is imported by 2 packages. Updated 2019-09-21. Refresh now. Tools for package owners.