cmd

package
v0.0.0-...-b33f35d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCLI

func SetupCLI(version, gitCommit string) *cobra.Command

SetupCLI sets up the CLI and returns the root command with the subcommands attached.

Types

type AuthCommand

type AuthCommand struct{}

func (*AuthCommand) Command

func (a *AuthCommand) Command() *cobra.Command

type ChannelAccountsCommand

type ChannelAccountsCommand struct {
	Service            txSubSvc.ChannelAccountsServiceInterface
	CrashTrackerClient crashtracker.CrashTrackerClient
}

func (*ChannelAccountsCommand) Command

func (c *ChannelAccountsCommand) Command() *cobra.Command

func (*ChannelAccountsCommand) CreateCommand

func (*ChannelAccountsCommand) DeleteCommand

func (*ChannelAccountsCommand) EnsureCommand

func (*ChannelAccountsCommand) VerifyCommand

func (*ChannelAccountsCommand) ViewCommand

func (c *ChannelAccountsCommand) ViewCommand() *cobra.Command

type DatabaseCommand

type DatabaseCommand struct{}

func (*DatabaseCommand) Command

func (c *DatabaseCommand) Command() *cobra.Command

type IntegrationTestsCommand

type IntegrationTestsCommand struct {
	Service integrationtests.IntegrationTestsInterface
}

func (*IntegrationTestsCommand) Command

func (c *IntegrationTestsCommand) Command() *cobra.Command

func (*IntegrationTestsCommand) CreateIntegrationTestsDataCommand

func (c *IntegrationTestsCommand) CreateIntegrationTestsDataCommand(integrationTestsOpts *integrationtests.IntegrationTestsOpts) *cobra.Command

func (*IntegrationTestsCommand) StartIntegrationTestsCommand

func (c *IntegrationTestsCommand) StartIntegrationTestsCommand(integrationTestsOpts *integrationtests.IntegrationTestsOpts) *cobra.Command

type MessageCommand

type MessageCommand struct{}

func (*MessageCommand) Command

func (s *MessageCommand) Command(messengerService MessengerServiceInterface) *cobra.Command

type MessengerService

type MessengerService struct{}

func (*MessengerService) GetClient

func (*MessengerService) SendMessage

func (m *MessengerService) SendMessage(opts message.MessengerOptions, message message.Message) error

type MessengerServiceInterface

type MessengerServiceInterface interface {
	GetClient(opts message.MessengerOptions) (message.MessengerClient, error)
	SendMessage(opts message.MessengerOptions, message message.Message) error
}

type ServeCommand

type ServeCommand struct{}

func (*ServeCommand) Command

func (c *ServeCommand) Command(serverService ServerServiceInterface, monitorService monitor.MonitorServiceInterface) *cobra.Command

type ServerService

type ServerService struct{}

func (*ServerService) GetSchedulerJobRegistrars

func (*ServerService) StartMetricsServe

func (s *ServerService) StartMetricsServe(opts serve.MetricsServeOptions, httpServer serve.HTTPServerInterface)

func (*ServerService) StartServe

func (s *ServerService) StartServe(opts serve.ServeOptions, httpServer serve.HTTPServerInterface)

type ServerServiceInterface

type ServerServiceInterface interface {
	StartServe(opts serve.ServeOptions, httpServer serve.HTTPServerInterface)
	StartMetricsServe(opts serve.MetricsServeOptions, httpServer serve.HTTPServerInterface)
	GetSchedulerJobRegistrars(ctx context.Context, serveOpts serve.ServeOptions, schedulerOptions scheduler.SchedulerOptions, apAPIService anchorplatform.AnchorPlatformAPIServiceInterface) ([]scheduler.SchedulerJobRegisterOption, error)
}

type TxSubmitterCommand

type TxSubmitterCommand struct{}

func (*TxSubmitterCommand) Command

func (c *TxSubmitterCommand) Command(submitterService TxSubmitterServiceInterface) *cobra.Command

type TxSubmitterService

type TxSubmitterService struct{}

func (*TxSubmitterService) StartMetricsServe

func (s *TxSubmitterService) StartMetricsServe(ctx context.Context, opts serve.MetricsServeOptions, httpServer serve.HTTPServerInterface, crashTrackerClient crashtracker.CrashTrackerClient)

func (*TxSubmitterService) StartSubmitter

func (t *TxSubmitterService) StartSubmitter(ctx context.Context, opts txSub.SubmitterOptions)

StartSubmitter starts the Transaction Submission Service

type TxSubmitterServiceInterface

type TxSubmitterServiceInterface interface {
	StartSubmitter(context.Context, txSub.SubmitterOptions)
	StartMetricsServe(ctx context.Context, opts serve.MetricsServeOptions, httpServer serve.HTTPServerInterface, crashTrackerClient crashtracker.CrashTrackerClient)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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