Documentation
¶
Index ¶
- func BuildCookie(ctx context.Context, cookieName, cookieValue, origin string, ...) (string, error)
- func ClearAuthCookies(ctx context.Context, cookieName, origin string) error
- func GetPageToken(limit int, offset int) (string, error)
- func JSONStr(v any) string
- func MarshalPageToken(pageToken *modelpb.PageToken) (string, error)
- func Ptr[T any](v T) *T
- func Unique[T comparable](arr []T) []T
- func UnmarshalPageToken(s string, pageToken *modelpb.PageToken) error
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCookie ¶
func BuildCookie(ctx context.Context, cookieName, cookieValue, origin string, expireTime time.Time) (string, error)
BuildCookie builds a cookie string.
func Unique ¶
func Unique[T comparable](arr []T) []T
Types ¶
Click to show internal directories.
Click to hide internal directories.