Documentation
¶
Index ¶
- Constants
- type AccountResponse
- type OrganizationCreationRequest
- type Server
- func (s *Server) Close()
- func (s *Server) HandleAppInstallationRequest(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleWebhook(w http.ResponseWriter, r *http.Request)
- func (s *Server) HealthCheck(w http.ResponseWriter, r *http.Request)
- func (s *Server) InitRouter(additionalMiddlewares ...mux.MiddlewareFunc)
- func (s *Server) RegisterGRPCGateway(grpcServerAddr string) error
- func (s *Server) RegisterOpenAPIHandler()
- func (s *Server) RegisterWebRoutes(webBasePath string)
- func (s *Server) Serve(host string, port int) error
- func (s *Server) WebsocketHub() *ws.Hub
- type SetupOwnerRequest
- type SetupOwnerResponse
Constants ¶
View Source
const ( // Event payload can be up to 64k in size MaxEventSize = 64 * 1024 // The size of the stage execution outputs can be up to 4k MaxExecutionOutputsSize = 4 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResponse ¶
type OrganizationCreationRequest ¶
type OrganizationCreationRequest struct {
Name string `json:"name"`
}
type Server ¶
type Server struct {
Router *mux.Router
BasePath string
BaseURL string
WebhooksBaseURL string
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( encryptor crypto.Encryptor, registry *registry.Registry, jwtSigner *jwt.Signer, oidcProvider oidc.Provider, basePath string, baseURL string, webhooksBaseURL string, appEnv string, templateDir string, authorizationService authorization.Authorization, blockSignup bool, middlewares ...mux.MiddlewareFunc, ) (*Server, error)
func (*Server) HandleAppInstallationRequest ¶
func (s *Server) HandleAppInstallationRequest(w http.ResponseWriter, r *http.Request)
func (*Server) HandleWebhook ¶
func (s *Server) HandleWebhook(w http.ResponseWriter, r *http.Request)
func (*Server) HealthCheck ¶
func (s *Server) HealthCheck(w http.ResponseWriter, r *http.Request)
func (*Server) InitRouter ¶
func (s *Server) InitRouter(additionalMiddlewares ...mux.MiddlewareFunc)
func (*Server) RegisterGRPCGateway ¶
func (*Server) RegisterOpenAPIHandler ¶
func (s *Server) RegisterOpenAPIHandler()
RegisterOpenAPIHandler adds handlers to serve the OpenAPI specification and Swagger UI
func (*Server) RegisterWebRoutes ¶
func (*Server) WebsocketHub ¶
WebsocketHub returns the websocket hub for this server
type SetupOwnerRequest ¶
type SetupOwnerRequest struct {
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Password string `json:"password"`
SMTPEnabled bool `json:"smtp_enabled"`
SMTPHost string `json:"smtp_host"`
SMTPPort int `json:"smtp_port"`
SMTPUsername string `json:"smtp_username"`
SMTPPassword string `json:"smtp_password"`
SMTPFromName string `json:"smtp_from_name"`
SMTPFromEmail string `json:"smtp_from_email"`
SMTPUseTLS bool `json:"smtp_use_tls"`
}
type SetupOwnerResponse ¶
type SetupOwnerResponse struct {
OrganizationID string `json:"organization_id"`
}
Click to show internal directories.
Click to hide internal directories.