api

package
v0.0.0-...-73882fe Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentImage

func ContentImage(c echo.Context) error

func GithubImage

func GithubImage(c echo.Context) error

func LocalImage

func LocalImage(c echo.Context) error

func RemoteImage

func RemoteImage(c echo.Context, fileURL string) error

Types

type API

type API struct {
	DB    *db.DB
	State *State
}

func (*API) Content

func (lpiAPI *API) Content(c echo.Context) error

func (*API) Exercises

func (lpiAPI *API) Exercises(c echo.Context) error

func (*API) Session

func (lpiAPI *API) Session(c echo.Context) error

type KeyedExercise

type KeyedExercise struct {
	Key      int
	Exercise *db.Exercise
}

type State

type State struct {
	Article   *db.Article
	Exercises []db.Exercise
	Session   *db.Session
}

Jump to

Keyboard shortcuts

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