controllers

package
v0.0.0-...-8d285ec Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctrl

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

Ctrl holds all the gui controllers. This struct allows us to share common data to all the controllers.

func NewCtrl

func NewCtrl(caly *calypso.Calypso) *Ctrl

NewCtrl creates a new Ctrl. It gets and stored the current folder path of this file so that we can later reference our statics files.

func (Ctrl) Abs

func (c Ctrl) Abs(path string) string

Abs is a utility to compute the absolute file path

func (Ctrl) EncryptHandler

func (c Ctrl) EncryptHandler() http.HandlerFunc

EncryptHandler handles the encryption

func (Ctrl) HomeHandler

func (c Ctrl) HomeHandler() http.HandlerFunc

HomeHandler handles the home page

func (Ctrl) PubkeyHandler

func (c Ctrl) PubkeyHandler() http.HandlerFunc

PubkeyHandler handles the public key request

func (Ctrl) ReadHandler

func (c Ctrl) ReadHandler() http.HandlerFunc

ReadHandler handles the read requests

func (Ctrl) WriteHandler

func (c Ctrl) WriteHandler() http.HandlerFunc

WriteHandler handles the write requests

Jump to

Keyboard shortcuts

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