action

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	TypeSetVar   Type = 0x01
	TypeUnsetVar Type = 0x02

	ScopeProcess     Scope = 0x00
	ScopeSession     Scope = 0x01
	ScopeTransaction Scope = 0x02
	ScopeRequest     Scope = 0x03
	ScopeResponse    Scope = 0x04
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Type  Type
	Scope Scope
	Name  string
	Value interface{}
}

func NewSetVar added in v1.0.4

func NewSetVar(scope Scope, name string, value interface{}) Action

func NewUnsetVar added in v1.0.4

func NewUnsetVar(scope Scope, name string) Action

func (*Action) Marshal

func (action *Action) Marshal(buf []byte) ([]byte, error)

type Actions

type Actions []Action

func (*Actions) Reset

func (actions *Actions) Reset()

func (*Actions) SetVar

func (actions *Actions) SetVar(scope Scope, name string, value interface{})

func (*Actions) UnsetVar

func (actions *Actions) UnsetVar(scope Scope, name string)

type Scope

type Scope byte

type Type

type Type byte

Jump to

Keyboard shortcuts

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