handlers

package
v0.0.0-...-37e23a2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package handlers ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C2Handler

type C2Handler struct {
	Manager m.Manager
	Log     *lg.Logger
	APIKey  string
}

C2Handler C2Handler

func (*C2Handler) AddCheckboxItem

func (h *C2Handler) AddCheckboxItem(w http.ResponseWriter, r *http.Request)

AddCheckboxItem AddCheckboxItem

func (*C2Handler) AddNote

func (h *C2Handler) AddNote(w http.ResponseWriter, r *http.Request)

AddNote AddNote

func (*C2Handler) AddNoteItem

func (h *C2Handler) AddNoteItem(w http.ResponseWriter, r *http.Request)

AddNoteItem AddNoteItem

func (*C2Handler) AddUser

func (h *C2Handler) AddUser(w http.ResponseWriter, r *http.Request)

AddUser AddUser

func (*C2Handler) AddUserToNote

func (h *C2Handler) AddUserToNote(w http.ResponseWriter, r *http.Request)

AddUserToNote AddUserToNote

func (*C2Handler) CheckContent

func (h *C2Handler) CheckContent(r *http.Request) bool

CheckContent CheckContent

func (*C2Handler) DeleteCheckboxItem

func (h *C2Handler) DeleteCheckboxItem(w http.ResponseWriter, r *http.Request)

DeleteCheckboxItem DeleteCheckboxItem

func (*C2Handler) DeleteNote

func (h *C2Handler) DeleteNote(w http.ResponseWriter, r *http.Request)

DeleteNote DeleteNote

func (*C2Handler) DeleteNoteItem

func (h *C2Handler) DeleteNoteItem(w http.ResponseWriter, r *http.Request)

DeleteNoteItem DeleteNoteItem

func (*C2Handler) GetNew

func (h *C2Handler) GetNew() Handler

GetNew GetNew

func (*C2Handler) GetNote

func (h *C2Handler) GetNote(w http.ResponseWriter, r *http.Request)

GetNote GetNote

func (*C2Handler) GetNoteUserList

func (h *C2Handler) GetNoteUserList(w http.ResponseWriter, r *http.Request)

GetNoteUserList GetNoteUserList

func (*C2Handler) GetUser

func (h *C2Handler) GetUser(w http.ResponseWriter, r *http.Request)

GetUser GetUser

func (*C2Handler) GetUsersNotes

func (h *C2Handler) GetUsersNotes(w http.ResponseWriter, r *http.Request)

GetUsersNotes GetUsersNotes

func (*C2Handler) Login

func (h *C2Handler) Login(w http.ResponseWriter, r *http.Request)

Login Login

func (*C2Handler) ProcessBody

func (h *C2Handler) ProcessBody(r *http.Request, obj interface{}) (bool, error)

ProcessBody ProcessBody

func (*C2Handler) ResetPassword

func (h *C2Handler) ResetPassword(w http.ResponseWriter, r *http.Request)

ResetPassword ResetPassword

func (*C2Handler) SetContentType

func (h *C2Handler) SetContentType(w http.ResponseWriter)

SetContentType SetContentType

func (*C2Handler) SetLogLevel

func (h *C2Handler) SetLogLevel(w http.ResponseWriter, r *http.Request)

SetLogLevel SetLogLevel

func (*C2Handler) UpdateCheckboxItem

func (h *C2Handler) UpdateCheckboxItem(w http.ResponseWriter, r *http.Request)

UpdateCheckboxItem UpdateCheckboxItem

func (*C2Handler) UpdateNote

func (h *C2Handler) UpdateNote(w http.ResponseWriter, r *http.Request)

UpdateNote UpdateNote

func (*C2Handler) UpdateNoteItem

func (h *C2Handler) UpdateNoteItem(w http.ResponseWriter, r *http.Request)

UpdateNoteItem UpdateNoteItem

func (*C2Handler) UpdateUser

func (h *C2Handler) UpdateUser(w http.ResponseWriter, r *http.Request)

UpdateUser UpdateUser

type Handler

type Handler interface {
	AddUser(w http.ResponseWriter, r *http.Request)
	UpdateUser(w http.ResponseWriter, r *http.Request)
	GetUser(w http.ResponseWriter, r *http.Request)
	Login(w http.ResponseWriter, r *http.Request)
	ResetPassword(w http.ResponseWriter, r *http.Request)

	AddUserToNote(w http.ResponseWriter, r *http.Request)
	GetNoteUserList(w http.ResponseWriter, r *http.Request)

	AddNote(w http.ResponseWriter, r *http.Request)
	UpdateNote(w http.ResponseWriter, r *http.Request)
	GetNote(w http.ResponseWriter, r *http.Request)
	GetUsersNotes(w http.ResponseWriter, r *http.Request)
	DeleteNote(w http.ResponseWriter, r *http.Request)

	AddCheckboxItem(w http.ResponseWriter, r *http.Request)
	UpdateCheckboxItem(w http.ResponseWriter, r *http.Request)
	DeleteCheckboxItem(w http.ResponseWriter, r *http.Request)

	AddNoteItem(w http.ResponseWriter, r *http.Request)
	UpdateNoteItem(w http.ResponseWriter, r *http.Request)
	DeleteNoteItem(w http.ResponseWriter, r *http.Request)

	SetLogLevel(w http.ResponseWriter, r *http.Request)
}

Handler Handler

type LogLevel

type LogLevel struct {
	Level string `json:"logLevel"`
}

LogLevel LogLevel

type LogResponse

type LogResponse struct {
	Success  bool   `json:"success"`
	LogLevel string `json:"logLevel"`
}

LogResponse LogResponse

Jump to

Keyboard shortcuts

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