state

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateState added in v0.2.0

func CreateState(info Info) (*State, *ConsentCode)

Types

type ConsentCode added in v0.2.0

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

func NewConsentCode added in v0.2.0

func NewConsentCode(info Info) *ConsentCode

func ParseConsentCode added in v0.2.0

func ParseConsentCode(cc string) *ConsentCode

func (*ConsentCode) GetState added in v0.2.0

func (c *ConsentCode) GetState() string

func (*ConsentCode) String added in v0.2.0

func (c *ConsentCode) String() string

type Info added in v0.2.0

type Info struct {
	Native       bool
	ResponseType pkgModel.ResponseType
}

func (*Info) Decode added in v0.2.0

func (i *Info) Decode(s string)

func (Info) Encode added in v0.2.0

func (i Info) Encode() string

type State

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

func NewState

func NewState(state string) *State

func (*State) Hash

func (s *State) Hash() string

func (State) MarshalJSON

func (s State) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (*State) Parse added in v0.2.0

func (s *State) Parse() (info Info)

func (*State) PollingCode

func (s *State) PollingCode() string

func (*State) Scan

func (s *State) Scan(src interface{}) error

Scan implements the sql.Scanner interface

func (State) State

func (s State) State() string

func (*State) UnmarshalJSON

func (s *State) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

func (State) Value

func (s State) Value() (driver.Value, error)

Value implements the driver.Valuer interface

Jump to

Keyboard shortcuts

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