common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppClientID              = "numaflow-server-app"
	StateCookieName          = "numaflow-oauthstate"
	StateCookieMaxAge        = 60 * 5
	UserIdentityCookieName   = "numaflow.token"
	UserIdentityCookieMaxAge = 60 * 60 * 8 // 8 hours
)

Variables

This section is empty.

Functions

func JoinCookies

func JoinCookies(key string, cookieList []*http.Cookie) (string, error)

JoinCookies combines chunks of cookie based on Key as prefix. It returns cookie Value as string. cookieString is of format key1=value1; key2=value2; key3=value3 first chunk will be of format numaflow.token=<numberOfChunks>:token; attributes

Types

type IdentityCookie

type IdentityCookie struct {
	Key   string
	Value string
}

func MakeCookieMetadata

func MakeCookieMetadata(key, value string) ([]IdentityCookie, error)

MakeCookieMetadata generates a string representing a Web cookie. Yum!

type InvalidCookieError

type InvalidCookieError struct {
	Key string
}

func (*InvalidCookieError) Error

func (e *InvalidCookieError) Error() string

Jump to

Keyboard shortcuts

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