render

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserAvatar

func GetUserAvatar(ctx context.Context) string

func GetUserEmail

func GetUserEmail(ctx context.Context) string

func Render

func Render(ctx context.Context, w http.ResponseWriter, status int, t templ.Component) error

func SetUserContext

func SetUserContext(r *http.Request, ctxUser CtxUser) *http.Request

Types

type CtxUser

type CtxUser struct {
	UserID         string
	TeamID         string
	ProviderUserID string
	UserMetadata   UserMetadata
}

func GetUserContext

func GetUserContext(r *http.Request) *CtxUser

func (*CtxUser) MarshalZerologObject

func (c *CtxUser) MarshalZerologObject(e *zerolog.Event)

type UserMetadata

type UserMetadata struct {
	Email  string
	Avatar string
}

Jump to

Keyboard shortcuts

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