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: 0

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