public

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

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 AccountResponse struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Email     string `json:"email"`
	AvatarURL string `json:"avatar_url"`
}

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,
	oidcVerifier *crypto.OIDCVerifier,
	basePath string,
	baseURL string,
	webhooksBaseURL string,
	appEnv string,
	templateDir string,
	authorizationService authorization.Authorization,
	blockSignup bool,
	middlewares ...mux.MiddlewareFunc,
) (*Server, error)

func (*Server) Close

func (s *Server) Close()

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 (s *Server) RegisterGRPCGateway(grpcServerAddr string) error

func (*Server) RegisterOpenAPIHandler

func (s *Server) RegisterOpenAPIHandler()

RegisterOpenAPIHandler adds handlers to serve the OpenAPI specification and Swagger UI

func (*Server) RegisterWebRoutes

func (s *Server) RegisterWebRoutes(webBasePath string)

func (*Server) Serve

func (s *Server) Serve(host string, port int) error

func (*Server) WebsocketHub

func (s *Server) WebsocketHub() *ws.Hub

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"`
}

type SetupOwnerResponse

type SetupOwnerResponse struct {
	OrganizationID string `json:"organization_id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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