server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildServer

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

func NewBuildServiceServer

func NewBuildServiceServer(db *sql.DB) *BuildServer

func (*BuildServer) BranchDurations

a grouped query comes back as the query's own row struct, one row per group

func (*BuildServer) BuildTotals

without a GroupBy the aggregates fold the whole table into one row

func (*BuildServer) CreateBuild

func (*BuildServer) DeleteAllBuild

func (*BuildServer) DeleteBuild

func (*BuildServer) GetBuildByCommitSha

func (s *BuildServer) GetBuildByCommitSha(
	ctx context.Context,
	req *connect.Request[pb.GetBuildByCommitShaRequest],
) (*connect.Response[pb.Build], error)

func (*BuildServer) GetBuildById

func (*BuildServer) ListAllBuild

func (*BuildServer) ListBranchStatusHistory

two fields, so they arrive as a params struct

func (*BuildServer) ListBranchStatuses

several distinct columns come back as the query's own row struct

func (*BuildServer) ListBranches

Distinct("branch") returns the values, so there are no entities to convert

func (*BuildServer) ListBuildByBranch

one string field, so the generated method takes it as a plain argument

func (*BuildServer) ListLatestBuilds

the row count is fixed in the sql, so the request carries no limit

func (*BuildServer) SearchBuilds

Count() adds a second return value, the total before Limit

func (*BuildServer) UpdateBuild

Jump to

Keyboard shortcuts

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