web

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubProvider = "github"
	GitLabProvider = "gitlab"
	GiteaProvider  = "gitea"
	OpenIDConnect  = "openid-connect"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	File string `json:"file"`
}

type ContextAuthInfo added in v1.7.3

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

func (ContextAuthInfo) AllowGistsWithoutLogin added in v1.7.3

func (auth ContextAuthInfo) AllowGistsWithoutLogin() (bool, error)

func (ContextAuthInfo) RequireLogin added in v1.7.3

func (auth ContextAuthInfo) RequireLogin() (bool, error)

type Server added in v1.5.0

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

func NewServer added in v1.5.0

func NewServer(isDev bool, sessionsPath string) *Server

func (*Server) ServeHTTP added in v1.5.0

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start added in v1.5.0

func (s *Server) Start()

func (*Server) Stop added in v1.5.0

func (s *Server) Stop()

type Template

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

func (*Template) Render

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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