Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyStruct ¶
Types ¶
type Server ¶
type Server struct { Router *gin.Engine AdminRouter *gin.Engine Queries *query.Queries Conn *pgx.Conn // contains filtered or unexported fields }
func (*Server) AuthMiddleware ¶ added in v0.0.4
func (s *Server) AuthMiddleware() gin.HandlerFunc
func (*Server) OnConfig ¶
@Summary Update the config of containerssh. @Description It is called by the containerssh webhook. and is not expected to be used externally. @Tags ssh-internal @Accept json @Produce json @Param request body config.Request true "query params" @Success 200 @Router /config [post]
func (*Server) OnPubKey ¶
@Summary authenticate the public key. @Description It is called by the containerssh webhook. and is not expected to be used externally. @Tags ssh-internal @Accept json @Produce json @Param request body auth.PublicKeyAuthRequest true "query params" @Success 200 {object} auth.ResponseBody @Router /pubkey [post]