service

package
v0.0.0-...-cdab844 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCMiddleware

func GRPCMiddleware() []grpc.UnaryServerInterceptor

Types

type App

type App struct {
	DeployerWorker *DeployerWorker
	CommandService *CommandService
	QueryService   *QueryService
}

func NewApp

func NewApp(deps AppDeps) (*App, error)

func (*App) RegisterGRPC

func (app *App) RegisterGRPC(server *grpc.Server)

type AppDeps

type AppDeps struct {
	SpecBuilder  *deployer.SpecBuilder
	GithubClient GithubClient
	DB           sqrlx.Transactor
}

type CommandService

type CommandService struct {
	*LookupProvider

	awsdeployer_spb.UnsafeDeploymentCommandServiceServer
	// contains filtered or unexported fields
}

func NewCommandService

func NewCommandService(db sqrlx.Transactor, github GithubClient, stateMachines *states.StateMachines) (*CommandService, error)

type DeployerWorker

func NewDeployerWorker

func NewDeployerWorker(db sqrlx.Transactor, specBuilder *deployer.SpecBuilder, states *states.StateMachines) (*DeployerWorker, error)

func (*DeployerWorker) ChangeSetStatusChanged

func (dw *DeployerWorker) ChangeSetStatusChanged(ctx context.Context, msg *awsinfra_tpb.ChangeSetStatusChangedMessage) (*emptypb.Empty, error)

func (*DeployerWorker) ECSDeploymentStatus

func (*DeployerWorker) ECSTaskStatus

func (*DeployerWorker) PostgresDatabaseStatus

func (dw *DeployerWorker) PostgresDatabaseStatus(ctx context.Context, msg *awsinfra_tpb.PostgresDatabaseStatusMessage) (*emptypb.Empty, error)

func (*DeployerWorker) RequestDeployment

func (*DeployerWorker) StackStatusChanged

type GithubClient

type GithubClient interface {
	PullO5Configs(ctx context.Context, owner, repo, commit string) ([]*application_pb.Application, error)
}

type LookupProvider

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

LookupProvider allows API calls to be requested with names rather than UUIDs for the state machines.

func NewLookupProvider

func NewLookupProvider(db sqrlx.Transactor) (*LookupProvider, error)

type QueryService

func NewQueryService

func NewQueryService(db sqrlx.Transactor, stateMachines *states.StateMachines) (*QueryService, error)

func (*QueryService) RegisterGRPC

func (ds *QueryService) RegisterGRPC(s *grpc.Server)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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