server

package
v1.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server Represents a server to handle requests, must implement GoDeploy.ServerInterface

func NewServer

func NewServer(db *gorm.DB, msn *messenger.Messenger) *Server

NewServer create a Server instance

func (*Server) AddApplication

func (srv *Server) AddApplication(ctx echo.Context) error

func (*Server) DeleteApplication

func (srv *Server) DeleteApplication(ctx echo.Context, id int) error

func (*Server) DeployApplication

func (srv *Server) DeployApplication(ctx echo.Context, id int) error

func (*Server) GetApplication

func (srv *Server) GetApplication(ctx echo.Context, id int) error

func (*Server) GetApplications

func (srv *Server) GetApplications(ctx echo.Context) error

func (*Server) RegenerateApplicationSecret

func (srv *Server) RegenerateApplicationSecret(ctx echo.Context, id int) error

func (*Server) ValidateBasicAuth

func (srv *Server) ValidateBasicAuth(username string, rawToken string, ctx echo.Context) (bool, error)

ValidateBasicAuth validate basic auth credentials, used with built-in middleware

Jump to

Keyboard shortcuts

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