server

package
v1.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGRPCServer

func StartGRPCServer(ctx context.Context, address, storeDir string) error

func StartHTTPServer

func StartHTTPServer(ctx context.Context, address, _store string) error

Types

type DistNinjaService

type DistNinjaService struct {
	proto.UnimplementedDistNinjaServiceServer
	// contains filtered or unexported fields
}

func (*DistNinjaService) CreateBuild added in v1.1.0

Build methods

func (*DistNinjaService) CreateRule added in v1.1.0

Rule methods

func (*DistNinjaService) DebugQuads added in v1.1.0

Debug methods

func (*DistNinjaService) FindCycles added in v1.1.0

Analysis methods

func (*DistNinjaService) GetAllTargets added in v1.1.0

Target methods

func (*DistNinjaService) GetBuild added in v1.1.0

func (*DistNinjaService) GetBuildOrder added in v1.1.0

func (*DistNinjaService) GetBuildStats added in v1.1.0

func (*DistNinjaService) GetRule added in v1.1.0

func (*DistNinjaService) GetTarget added in v1.1.0

func (*DistNinjaService) GetTargetDependencies added in v1.1.0

func (*DistNinjaService) GetTargetReverseDependencies added in v1.1.0

func (*DistNinjaService) GetTargetsByRule added in v1.1.0

func (*DistNinjaService) Health added in v1.1.0

Admin methods

func (*DistNinjaService) LoadNinjaFile added in v1.1.0

Load methods

func (*DistNinjaService) Status added in v1.1.0

func (*DistNinjaService) UpdateTargetStatus added in v1.1.0

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
	Code  int    `json:"code"`
}

type HealthResponse

type HealthResponse struct {
	Status    string    `json:"status"`
	Timestamp time.Time `json:"timestamp"`
}

type LoadNinjaRequest added in v1.1.0

type LoadNinjaRequest struct {
	FilePath string  `json:"file_path"`
	Content  *string `json:"content,omitempty"`
}

type LoadNinjaResponse added in v1.1.0

type LoadNinjaResponse struct {
	Status    string                 `json:"status"`
	Message   string                 `json:"message"`
	Stats     map[string]interface{} `json:"stats,omitempty"`
	BuildTime string                 `json:"build_time"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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