server

package
v0.0.0-...-b80aede Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTP

func HTTP(r *gin.Engine)

func Init

func Init(logger *logrus.Logger, db *db.DB)

Types

type ChangePassword

type ChangePassword struct {
	User        string
	Password    string
	NewPassword string
}

type Server

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

Server is the notes server

func New

func New(logger *logrus.Logger, db *db.DB) *Server

New creates a new notes server

func (*Server) AdminCheckMiddleware

func (s *Server) AdminCheckMiddleware(ctx *gin.Context)

func (*Server) SignCheck

func (s *Server) SignCheck(ctx *gin.Context)

func (*Server) SignCheckMiddleware

func (s *Server) SignCheckMiddleware(ctx *gin.Context)

type UserPassword

type UserPassword struct {
	User     string
	Password string
}

Jump to

Keyboard shortcuts

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