configuration

package
v0.0.0-...-bd878e7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StorageHandler storageHandler

Functions

func Information

func Information(writer http.ResponseWriter, request *http.Request)

func NewStorageHandler

func NewStorageHandler(root string, directories bool) storageHandler

Types

type Configuration

type Configuration struct {
	Secret       string
	URI          string
	Database     string
	Username     string
	Password     string
	Storage      string
	Directories  bool
	SecureCookie bool
	Port         uint
}

type LoggerMiddleware

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

func NewLoggerMiddleware

func NewLoggerMiddleware(handler http.Handler) *LoggerMiddleware

func (*LoggerMiddleware) ServeHTTP

func (lm *LoggerMiddleware) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type RakerServer

type RakerServer struct {
	Configuration
	DBClient      *mongo.Client
	Users         *mongo.Collection
	Histories     *mongo.Collection
	Authenticator authenticator.Authenticator
	WebAuthn      *webauthn.WebAuthn
	HTTPServer    http.Server
}

func NewRakerServer

func NewRakerServer() (*RakerServer, error)

func (*RakerServer) AuthenticationPage

func (server *RakerServer) AuthenticationPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) Categories

func (server *RakerServer) Categories(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) HighlightPage

func (server *RakerServer) HighlightPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) HighlightResult

func (server *RakerServer) HighlightResult(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) History

func (server *RakerServer) History(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) HistoryPage

func (server *RakerServer) HistoryPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) InstagramPage

func (server *RakerServer) InstagramPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) InstagramResult

func (server *RakerServer) InstagramResult(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) InstagramSignIn

func (server *RakerServer) InstagramSignIn(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) InstagramSignOut

func (server *RakerServer) InstagramSignOut(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) InstagramSignUp

func (server *RakerServer) InstagramSignUp(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) InstagramUpdateCredentials

func (server *RakerServer) InstagramUpdateCredentials(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) StoryPage

func (server *RakerServer) StoryPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) StoryResult

func (server *RakerServer) StoryResult(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) TikTokPage

func (server *RakerServer) TikTokPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) TikTokResult

func (server *RakerServer) TikTokResult(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) VSCOPage

func (server *RakerServer) VSCOPage(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) VSCOResult

func (server *RakerServer) VSCOResult(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) Verify

func (server *RakerServer) Verify(strict bool, handler http.Handler) http.Handler

func (*RakerServer) WebAuthnBeginSignIn

func (server *RakerServer) WebAuthnBeginSignIn(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) WebAuthnBeginSignUp

func (server *RakerServer) WebAuthnBeginSignUp(writer http.ResponseWriter, request *http.Request)

func (*RakerServer) WebAuthnFinishSignUp

func (server *RakerServer) WebAuthnFinishSignUp(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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