cloudfunc

package
v0.0.0-...-45a98ea Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompactSerial

func CompactSerial(x interface{}) (string, error)

func ExpandSerial

func ExpandSerial(serial []byte, dst interface{}) error

func GetSecretFromVolume

func GetSecretFromVolume(path string) (string, error)

func HandleCORS

func HandleCORS(w http.ResponseWriter, r *http.Request, origin string) bool

func HttpError

func HttpError(w http.ResponseWriter, err error, status int)

func MarshalCBOR

func MarshalCBOR(x interface{}) ([]byte, error)

func MarshalJSON

func MarshalJSON(x interface{}) ([]byte, error)

func ParamValue

func ParamValue(r *http.Request, pos int) string

func ParseJSON

func ParseJSON(r *http.Request, dst interface{}) error

func QueryParam

func QueryParam(r *http.Request, key string) (string, error)

func ServeJSON

func ServeJSON(w http.ResponseWriter, src interface{}) error

func UnmarshalCBOR

func UnmarshalCBOR(b []byte, dst interface{}) error

func UnmarshalJSON

func UnmarshalJSON(b []byte, dst interface{}) error

func VerifyUser

func VerifyUser(ctx context.Context, projectID string, r *http.Request) (*auth.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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