httpapi

package
v0.0.0-...-9e7246e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	Mode                 string
	Environment          string
	StaticToken          string
	Introspection        string
	ClientID             string
	ClientSecret         string
	AuthorizationURL     string
	TokenURL             string
	RedirectURL          string
	NativeRedirectURL    string
	FrontendURL          string
	SessionCookieName    string
	LoginStateCookieName string
	SessionCookieMaxAge  int
	SecureCookies        bool
	Scopes               []string
	RequiredRole         string
	RoleClaim            string
	HTTPClient           *http.Client
}

func (Authenticator) Callback

func (a Authenticator) Callback(c *echo.Context) error

func (Authenticator) Login

func (a Authenticator) Login(c *echo.Context) error

func (Authenticator) Logout

func (a Authenticator) Logout(c *echo.Context) error

func (Authenticator) Middleware

func (a Authenticator) Middleware(next echo.HandlerFunc) echo.HandlerFunc

func (Authenticator) NativeLogin

func (a Authenticator) NativeLogin(c *echo.Context) error

func (Authenticator) Session

func (a Authenticator) Session(c *echo.Context) error

func (Authenticator) Subject

func (a Authenticator) Subject(ctx context.Context, request *http.Request) (string, error)

type Server

type Server struct {
	Videos store.Repository
	Media  media.ObjectStore
	Jobs   encoding.JobDispatcher
}

func (*Server) HandleEncodingEvent

func (s *Server) HandleEncodingEvent(ctx context.Context, event encoding.Event) error

func (*Server) Register

func (s *Server) Register(e *echo.Echo, auth Authenticator, playgroundEnabled bool)

Jump to

Keyboard shortcuts

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