Version: v0.2.6 Latest Latest

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 22 Imported by: 0




This section is empty.


This section is empty.


func Mailer added in v0.2.4

func Mailer(config *config.Configuration) mailer.Mailer

Mailer returns a new mailer instance


type API

type API struct {
	// contains filtered or unexported fields

func New

func New(db *gorm.DB, config *config.Configuration) *API

New starts a new Web-Service

func (*API) GetQRCode added in v0.2.0

func (a *API) GetQRCode(c echo.Context) error

GetQRCode returns an QR Code for given URL

func (*API) LinkCreate added in v0.0.6

func (a *API) LinkCreate(c echo.Context) error

LinkCreate creates a new Link

func (*API) LinkDelete added in v0.0.6

func (a *API) LinkDelete(c echo.Context) error

LinkDelete deletes a single entry

func (*API) LinkUpdate added in v0.0.6

func (a *API) LinkUpdate(c echo.Context) error

LinkUpdate updates link url

func (a *API) LinksList(c echo.Context) error

LinksList lists all links

func (*API) Login added in v0.0.6

func (a *API) Login(c echo.Context) error

Login a user

func (*API) RefreshToken added in v0.0.6

func (a *API) RefreshToken(c echo.Context) error

RefreshToken handels token refreshs!

func (*API) Start added in v0.2.4

func (a *API) Start()

Starts the API Server

type LoginResponse added in v0.0.6

type LoginResponse struct {
	Token        string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`

type Template added in v0.0.6

type Template struct {
	// contains filtered or unexported fields

func (*Template) Render added in v0.0.6

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

type ViewData added in v0.0.6

type ViewData struct {
	Webpack *webpack.Webpack
	Config  struct {
		APIURL string `json:"apiUrl"`

ViewData contains data for the view

func NewViewData added in v0.0.6

func NewViewData(buildPath string) (ViewData, error)

NewViewData creates new data for the view

Jump to

Keyboard shortcuts

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