gencontext

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyslogTimeEncoder

func SyslogTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

Types

type ExecutePool

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

func (*ExecutePool) EnqueExecution

func (ep *ExecutePool) EnqueExecution(work func() error)

func (*ExecutePool) Execute

func (ep *ExecutePool) Execute(work func() error) chan error

func (*ExecutePool) WaitAll

func (ep *ExecutePool) WaitAll() []error

type ExecutePoolFactory

type ExecutePoolFactory struct {
}

func (*ExecutePoolFactory) NewPool

func (ep *ExecutePoolFactory) NewPool() ExecutePool

type GenContext

type GenContext struct {
	Logger *zap.SugaredLogger

	// libs
	EndpointsResolver *endpoints.EndpointsResolver
	// contains filtered or unexported fields
}

func NewGenContext

func NewGenContext(
	goContext context.Context,
	serviceName string,
	workspaceDescription workspace.Description,
	migrate bool,
	forceRegeneration bool,
	mifyVersion string,
	verboseOutput bool,
) (*GenContext, error)

func (*GenContext) GetApiGatewayCtx

func (c *GenContext) GetApiGatewayCtx() *api_gateway_context.ApiGatewayContext

func (*GenContext) GetExecutePoolFactory

func (c *GenContext) GetExecutePoolFactory() *ExecutePoolFactory

func (*GenContext) GetForceRegeneration added in v0.1.7

func (c *GenContext) GetForceRegeneration() bool

func (*GenContext) GetGoContext

func (c *GenContext) GetGoContext() context.Context

func (*GenContext) GetIsVerboseOutput added in v0.1.18

func (c *GenContext) GetIsVerboseOutput() bool

func (*GenContext) GetMifySchema

func (c *GenContext) GetMifySchema() *mifyconfig.ServiceConfig

func (*GenContext) GetMifyVersion added in v0.1.7

func (c *GenContext) GetMifyVersion() string

func (*GenContext) GetMigrate added in v0.1.1

func (c *GenContext) GetMigrate() bool

func (*GenContext) GetOpenapiCtx

func (c *GenContext) GetOpenapiCtx() *openapi_context.OpenapiContext

func (*GenContext) GetSchemaCtx

func (c *GenContext) GetSchemaCtx() *schema_context.SchemaContext

func (*GenContext) GetServiceName

func (c *GenContext) GetServiceName() string

func (*GenContext) GetVcsIntegration added in v0.1.1

func (c *GenContext) GetVcsIntegration() *VcsIntegration

func (*GenContext) GetWorkspace

func (c *GenContext) GetWorkspace() *workspace.Description

func (*GenContext) MustGetMifySchema

func (c *GenContext) MustGetMifySchema() *mifyconfig.ServiceConfig

func (*GenContext) SetApiGatewayCtx

func (c *GenContext) SetApiGatewayCtx(ctx *api_gateway_context.ApiGatewayContext)

func (*GenContext) SetOpenapiCtx

func (c *GenContext) SetOpenapiCtx(ctx *openapi_context.OpenapiContext)

func (*GenContext) SetSchemaCtx

func (c *GenContext) SetSchemaCtx(ctx *schema_context.SchemaContext)

type VcsIntegration added in v0.1.1

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

func (*VcsIntegration) FileHasUncommitedChanges added in v0.1.1

func (vcs *VcsIntegration) FileHasUncommitedChanges(relPath string) (bool, error)

Jump to

Keyboard shortcuts

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