server

package
v0.0.0-...-35f9e00 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_CONTENT_SIZE  = 16
	MIN_PASSWORD_SIZE = 8

	MAX_CONTENT_SIZE = 2000
)

Variables

This section is empty.

Functions

func EmptyHandler

func EmptyHandler(c echo.Context) error

Types

type InputPassword

type InputPassword struct {
	Password string `json:"password"`
}

type Message

type Message struct {
	Content       string `json:"content"`
	IsPrivate     bool   `json:"is_private"`
	EncodingType  string `json:"encoding_type"`
	Password      string `json:"password"`
	OnlyOwnerView bool   `json:"only_owner_view"`
	IsAnon        bool   `json:"is_anon"`
	IsOneTime     bool   `json:"is_one_time"`
}

type Server

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

func (*Server) CreateMessage

func (s *Server) CreateMessage(c echo.Context) error

func (*Server) DeleteMessage

func (s *Server) DeleteMessage(c echo.Context) error

func (*Server) GetPrivateMessage

func (s *Server) GetPrivateMessage(c echo.Context) error

func (*Server) GetPublicMessage

func (s *Server) GetPublicMessage(c echo.Context) error

func (*Server) GetPublicMessagesList

func (s *Server) GetPublicMessagesList(c echo.Context) error

func (*Server) GetUserMessagesList

func (s *Server) GetUserMessagesList(c echo.Context) error

func (*Server) Init

func (s *Server) Init() error

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) SignIn

func (s *Server) SignIn(c echo.Context) error

func (*Server) SignUp

func (s *Server) SignUp(c echo.Context) error

func (*Server) UpdateMessage

func (s *Server) UpdateMessage(c echo.Context) error

func (*Server) VerifySignUp

func (s *Server) VerifySignUp(c echo.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳