ws

package
v0.0.0-...-c935f35 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Authenticated bool `json:"auth"`
}

type IPNetParam

type IPNetParam struct {
	Name     string
	Default  []net.IPNet
	Required bool
	// contains filtered or unexported fields
}

func (*IPNetParam) Clone

func (param *IPNetParam) Clone(data json.RawMessage) (parameters.Param, error)

func (*IPNetParam) GetData

func (param *IPNetParam) GetData() json.RawMessage

func (*IPNetParam) GetIPNet

func (param *IPNetParam) GetIPNet() (value []net.IPNet, err error)

func (*IPNetParam) GetName

func (param *IPNetParam) GetName() string

func (*IPNetParam) IsRequired

func (param *IPNetParam) IsRequired() bool

func (*IPNetParam) MarshalJSON

func (param *IPNetParam) MarshalJSON() ([]byte, error)

func (*IPNetParam) SetData

func (param *IPNetParam) SetData(message json.RawMessage) (err error)

func (*IPNetParam) SetName

func (param *IPNetParam) SetName(newName string)

func (*IPNetParam) UnmarshalJSON

func (param *IPNetParam) UnmarshalJSON(jsonData []byte) (err error)

type InterfaceParam

type InterfaceParam struct {
	Name     string
	Default  map[string]interface{}
	Required bool
	// contains filtered or unexported fields
}

func (*InterfaceParam) Clone

func (param *InterfaceParam) Clone(data json.RawMessage) (parameters.Param, error)

func (*InterfaceParam) GetData

func (param *InterfaceParam) GetData() json.RawMessage

func (*InterfaceParam) GetInterface

func (param *InterfaceParam) GetInterface() (value map[string]interface{}, err error)

func (*InterfaceParam) GetName

func (param *InterfaceParam) GetName() string

func (*InterfaceParam) IsRequired

func (param *InterfaceParam) IsRequired() bool

func (*InterfaceParam) MarshalJSON

func (param *InterfaceParam) MarshalJSON() ([]byte, error)

func (*InterfaceParam) SetData

func (param *InterfaceParam) SetData(message json.RawMessage) (err error)

func (*InterfaceParam) SetName

func (param *InterfaceParam) SetName(newName string)

func (*InterfaceParam) UnmarshalJSON

func (param *InterfaceParam) UnmarshalJSON(jsonData []byte) (err error)

type WS

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

func CreateWs

func CreateWs(guard *Guard.Guard, state *state.State) WS

func (*WS) Handler

func (ws *WS) Handler(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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