api

package
v0.0.0-...-5901aa7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTomorrow

func GetTomorrow() time.Time

func GetYesterday

func GetYesterday() time.Time

Types

type MessageResponse

type MessageResponse struct {
	Error   string `json:"error,omitempty"`
	Message string `json:"message,omitempty"`
}

type SequenceDoorData

type SequenceDoorData struct {
	Door string `json:"door"`
	Time string `json:"time"`
}

func (*SequenceDoorData) Bind

func (d *SequenceDoorData) Bind(_ *http.Request) error

type Server

type Server struct {
	Server *http.Server

	Sites *net2.SiteManager
	// contains filtered or unexported fields
}

func (*Server) GetRoutes

func (s *Server) GetRoutes() *chi.Mux

func (*Server) Index

func (s *Server) Index(w http.ResponseWriter, r *http.Request)

func (*Server) Init

func (s *Server) Init(port int, handler http.Handler)

func (*Server) Run

func (s *Server) Run() error

type UpdateUserData

type UpdateUserData struct {
	FirstName   string `json:"FirstName"`
	LastName    string `json:"LastName"`
	AccessLevel int    `json:"AccessLevel"`
}

func (*UpdateUserData) Bind

func (d *UpdateUserData) Bind(_ *http.Request) error

Jump to

Keyboard shortcuts

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