appserver

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServerAddr = "0.0.0.0:9056"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Platform         api.Platform
	Repositories     []api.Repository
	RepositoriesByID map[int64]api.Repository
	Addr             string
	StorageApi       storageapi.API
}

func (*Config) SetRepositories

func (c *Config) SetRepositories(repos []api.Repository)

type PipelineArtifact added in v0.7.0

type PipelineArtifact struct {
	ProjectID       int64                    `json:"project_id"`
	RepoPath        string                   `json:"repo_path"`
	GeneratedAt     time.Time                `json:"generated_at"`
	WorkflowState   *appconfig.WorkflowState `json:"workflow_state"`
	WorkflowContent map[string]string        `json:"workflow_content"`
}

type Server

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

func NewServer

func NewServer(cfg *Config) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the server and listens for signals to gracefully shut down.

Jump to

Keyboard shortcuts

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