admin

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminRoute

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

func NewAdmin

func NewAdmin(server config.LocationOrServer, f fs.FS, lookup *fs.Lookup) *AdminRoute

func (*AdminRoute) BaseHandler

func (admin *AdminRoute) BaseHandler(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*AdminRoute) CheckCredentials

func (admin *AdminRoute) CheckCredentials(w gemini.ResponseWriter, r *gemini.Request) bool

func (*AdminRoute) RequestFromAdmin

func (admin *AdminRoute) RequestFromAdmin(r *gemini.Request) bool

func (*AdminRoute) ServeGemini

func (admin *AdminRoute) ServeGemini(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

type AdminTemplate

type AdminTemplate struct {
	AdminPath string
	Tinylogs  []config.TinylogConfig
}

type CryptoEqual

type CryptoEqual interface {
	Equal(x crypto.PublicKey) bool
}

type TinyLogRoute

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

func NewTinyLogRoute

func NewTinyLogRoute(cfg *config.TinylogConfig, tmpl *template.Template, lookup *fs.Lookup, adminPath string) *TinyLogRoute

func (*TinyLogRoute) Crosspost added in v0.2.0

func (tl *TinyLogRoute) Crosspost(msg string)

func (*TinyLogRoute) GetTinylogRaw

func (tl *TinyLogRoute) GetTinylogRaw() (string, error)

func (*TinyLogRoute) ServeEditAuthor

func (tl *TinyLogRoute) ServeEditAuthor(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*TinyLogRoute) ServeEditAvatar

func (tl *TinyLogRoute) ServeEditAvatar(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*TinyLogRoute) ServeEditLicense

func (tl *TinyLogRoute) ServeEditLicense(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*TinyLogRoute) ServeEditTitle

func (tl *TinyLogRoute) ServeEditTitle(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*TinyLogRoute) ServeGemini

func (tl *TinyLogRoute) ServeGemini(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*TinyLogRoute) ServeIndex

func (tl *TinyLogRoute) ServeIndex(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

func (*TinyLogRoute) ServePost

func (tl *TinyLogRoute) ServePost(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)

Jump to

Keyboard shortcuts

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