Documentation
¶
Index ¶
- type CortezaApp
- func (app *CortezaApp) Activate(ctx context.Context) (err error)
- func (app *CortezaApp) Execute() error
- func (app *CortezaApp) InitCLI()
- func (app *CortezaApp) InitServices(ctx context.Context) (err error)
- func (app *CortezaApp) InitStore(ctx context.Context) (err error)
- func (app *CortezaApp) Options() *options.Options
- func (app *CortezaApp) Provision(ctx context.Context) (err error)
- func (app *CortezaApp) Setup() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CortezaApp ¶
type CortezaApp struct { Opt *options.Options Log *zap.Logger // Store interface // // Just a blank interface{} because we want to avoid generating // whole store interface (as we do for other packages). // // Value will be type-casted when assigned to sys/msg/cmp services // with warnings when incompatible Store store.Storer // CLI Commands Command *cobra.Command DefaultAuthClient *types.AuthClient // Servers HttpServer httpApiServer GrpcServer grpcServer WsServer wsServer AuthService authServicer ApigwService apigwServicer // contains filtered or unexported fields }
func New ¶
func New() *CortezaApp
func (*CortezaApp) Activate ¶
func (app *CortezaApp) Activate(ctx context.Context) (err error)
Activate start all internal services and watchers
func (*CortezaApp) Execute ¶
func (app *CortezaApp) Execute() error
func (*CortezaApp) InitCLI ¶
func (app *CortezaApp) InitCLI()
InitCLI function initializes basic Corteza subsystems and sets-up the command line interface
func (*CortezaApp) InitServices ¶
func (app *CortezaApp) InitServices(ctx context.Context) (err error)
InitServices initializes all services used
func (*CortezaApp) InitStore ¶
func (app *CortezaApp) InitStore(ctx context.Context) (err error)
InitStore initializes store backend(s) and runs upgrade procedures
func (*CortezaApp) Options ¶
func (app *CortezaApp) Options() *options.Options
func (*CortezaApp) Provision ¶
func (app *CortezaApp) Provision(ctx context.Context) (err error)
Provision instance with configuration and settings by importing preset configurations and running autodiscovery procedures
func (*CortezaApp) Setup ¶
func (app *CortezaApp) Setup() (err error)
Setup configures all required services
Click to show internal directories.
Click to hide internal directories.