api

package
v0.0.0-...-08087d0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

func SendEmail

func SendEmail(username, email, code string) error

utility function for send verification code to email

Types

type ApiHandler

type ApiHandler func(w http.ResponseWriter, r *http.Request) *types.ApiError

type ApiServer

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

func NewApiServer

func NewApiServer(listenAddr string, store storage.Storage) *ApiServer

func (*ApiServer) Run

func (s *ApiServer) Run()

Jump to

Keyboard shortcuts

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