cellib

package
v0.6.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Library

func Library() cel.EnvOption

Types

type Request

type Request struct {
	Method   string
	URL      *URL
	ClientIP []string
	// contains filtered or unexported fields
}

func WrapRequest

func WrapRequest(ctx heimdall.Context) *Request

func (*Request) ConvertToNative

func (r *Request) ConvertToNative(_ reflect.Type) (any, error)

func (*Request) ConvertToType

func (r *Request) ConvertToType(_ ref.Type) ref.Val

func (*Request) Cookie

func (r *Request) Cookie(name string) string

func (*Request) Equal

func (r *Request) Equal(other ref.Val) ref.Val

func (*Request) Header

func (r *Request) Header(name string) string

func (*Request) Receive

func (r *Request) Receive(function string, _ string, args []ref.Val) ref.Val

func (*Request) Type

func (r *Request) Type() ref.Type

func (*Request) Value

func (r *Request) Value() any

type URL

type URL struct {
	url.URL
}

func (*URL) ConvertToNative

func (u *URL) ConvertToNative(_ reflect.Type) (any, error)

func (*URL) ConvertToType

func (u *URL) ConvertToType(_ ref.Type) ref.Val

func (*URL) Equal

func (u *URL) Equal(other ref.Val) ref.Val

func (*URL) Receive

func (u *URL) Receive(function string, _ string, args []ref.Val) ref.Val

func (*URL) Type

func (u *URL) Type() ref.Type

func (*URL) Value

func (u *URL) Value() any

Jump to

Keyboard shortcuts

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