web

package
v0.0.0-...-8b6083e Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	echo.Context
	LoggedIn bool
}

type GlobalRenderData

type GlobalRenderData struct {
	Path []string
	URL  *url.URL

	LoggedIn bool

	Title string
}

func NewBaseRenderData

func NewBaseRenderData(ectx echo.Context) *GlobalRenderData

type Template

type Template struct {
	// contains filtered or unexported fields
}

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

type WebClient

type WebClient struct {
	Echo      *echo.Echo
	Templates *template.Template
	Providers map[string]providers.Provider
	Config    WebClientConfig
}

func NewClient

func NewClient(config WebClientConfig) (*WebClient, error)

func (*WebClient) AppRoutes

func (s *WebClient) AppRoutes(group *echo.Group)

func (*WebClient) AuthRoutes

func (s *WebClient) AuthRoutes(group *echo.Group)

func (*WebClient) Start

func (s *WebClient) Start(ctx context.Context) error

type WebClientConfig

type WebClientConfig struct {
	Theme string
}

Jump to

Keyboard shortcuts

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