Documentation ¶
Index ¶
- type AdminRoute
- func (admin *AdminRoute) BaseHandler(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (admin *AdminRoute) CheckCredentials(w gemini.ResponseWriter, r *gemini.Request) bool
- func (admin *AdminRoute) RequestFromAdmin(r *gemini.Request) bool
- func (admin *AdminRoute) ServeGemini(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- type AdminTemplate
- type CryptoEqual
- type TinyLogRoute
- func (tl *TinyLogRoute) Crosspost(msg string)
- func (tl *TinyLogRoute) GetTinylogRaw() (string, error)
- func (tl *TinyLogRoute) ServeEditAuthor(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (tl *TinyLogRoute) ServeEditAvatar(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (tl *TinyLogRoute) ServeEditLicense(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (tl *TinyLogRoute) ServeEditTitle(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (tl *TinyLogRoute) ServeGemini(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (tl *TinyLogRoute) ServeIndex(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
- func (tl *TinyLogRoute) ServePost(ctx context.Context, w gemini.ResponseWriter, r *gemini.Request)
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 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)
Click to show internal directories.
Click to hide internal directories.