Documentation
¶
Overview ¶
Package server contains a Gin API as well as specifications for the objects it is intended to send and receive. The struct for the server includes access to users and domains. All POST requests need a valid username and password combo.
Index ¶
Constants ¶
View Source
const ( INVALID_JSON = "Invalid JSON body" INVALID_PASSWORD = "Invalid username or password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserObj ¶
type DomainsObj ¶
type DomainsObj struct { Username string Password string Websites []website.WebsiteInfo }
type EditUserObj ¶
type Server ¶
type Server struct { Address string Engine *gin.Engine Websites *monitoring.Orchestrator Users *user.Users WaitGroup *sync.WaitGroup }
type SuccessObj ¶
Click to show internal directories.
Click to hide internal directories.