utils

package
v0.0.0-...-77088b8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCursor

func DecodeCursor(encodedCursor string) (res time.Time, id uuid.UUID, err error)

func EncodeCursor

func EncodeCursor(t time.Time, id uuid.UUID) string

func SendEmailInvite

func SendEmailInvite(cfg config.EmailConfig, invite EmailInvite) error

Types

type ContextKey

type ContextKey string

ContextKey represents a context key

const (
	// UserIDKey is the key for the user id of the authenticated user
	UserIDKey ContextKey = "userID"
	// ReqIDKey is the unique ID key for current request
	ReqIDKey ContextKey = "reqID"
	//RestrictedModeKey is the key for whether the authenticated user only has access to install route
	RestrictedModeKey ContextKey = "restricted_mode"
	// OrgRoleKey is the key for the organization role code of the authenticated user
	OrgRoleKey ContextKey = "org_role"
)

type EmailInvite

type EmailInvite struct {
	ConfirmToken string
	FullName     string
	To           string
}

type Info

type Info struct {
	Version    string
	CommitHash string
	BuildDate  string
}

func Version

func Version() Info

type NotificationCreatedMessage

type NotificationCreatedMessage struct {
	NotifiedID     string
	NotificationID string
}

Jump to

Keyboard shortcuts

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