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
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( encryptor crypto.Encryptor, registry *registry.Registry, jwtSigner *jwt.Signer, oidcVerifier *crypto.OIDCVerifier, basePath string, baseURL 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 SetupOwnerResponse ¶
type SetupOwnerResponse struct {
OrganizationID string `json:"organization_id"`
}
Click to show internal directories.
Click to hide internal directories.