Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTemplateFunctions ¶ added in v0.2.0
func LoadTemplates ¶ added in v0.3.8
LoadTemplates loads html templates for use by the given engine
func SessionName ¶ added in v0.2.0
SessionName is a utility function that derives an appropriate session name from the hostname.
func SessionOptions ¶ added in v0.2.0
SessionOptions returns the standard set of options to use for each session.
Types ¶
type Router ¶
type Router interface { // Attach a gin handler to the router with the given method and path AttachHandler(method string, path string, f gin.HandlerFunc) // Attach a gin middleware to the router that will be used globally AttachMiddleware(handler gin.HandlerFunc) // Attach 404 NoRoute handler AttachNoRouteHandler(handler gin.HandlerFunc) // Attach a router group, and receive that group back. // More middlewares and handlers can then be attached on // the group by the caller. AttachGroup(path string, handlers ...gin.HandlerFunc) *gin.RouterGroup // Start the router Start() // Stop the router Stop(ctx context.Context) error }
Router provides the REST interface for gotosocial, using gin.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.