Documentation ¶
Index ¶
- type GrpcAdapter
- type TerraformerGrpcService
- func (t *TerraformerGrpcService) BuildInfrastructure(ctx context.Context, request *pb.BuildInfrastructureRequest) (*pb.BuildInfrastructureResponse, error)
- func (t *TerraformerGrpcService) DestroyInfrastructure(ctx context.Context, request *pb.DestroyInfrastructureRequest) (*pb.DestroyInfrastructureResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcAdapter ¶
func (*GrpcAdapter) Init ¶
func (g *GrpcAdapter) Init(usecases *usecases.Usecases, opts ...grpc.ServerOption)
Init sets up the GrpcAdapter by creating the underlying tcpListener, gRPC server and gRPC health check server.
func (*GrpcAdapter) Serve ¶ added in v0.4.2
func (g *GrpcAdapter) Serve() error
Serve makes the gRPC server start listening for incoming gRPC requests.
func (*GrpcAdapter) Stop ¶
func (g *GrpcAdapter) Stop()
Stop gracefully shuts down the underlying gRPC server and gRCP health-check server.
type TerraformerGrpcService ¶
type TerraformerGrpcService struct { pb.UnimplementedTerraformerServiceServer // contains filtered or unexported fields }
func (*TerraformerGrpcService) BuildInfrastructure ¶
func (t *TerraformerGrpcService) BuildInfrastructure(ctx context.Context, request *pb.BuildInfrastructureRequest) (*pb.BuildInfrastructureResponse, error)
func (*TerraformerGrpcService) DestroyInfrastructure ¶
func (t *TerraformerGrpcService) DestroyInfrastructure(ctx context.Context, request *pb.DestroyInfrastructureRequest) (*pb.DestroyInfrastructureResponse, error)
Click to show internal directories.
Click to hide internal directories.