Documentation
¶
Index ¶
Constants ¶
View Source
const DELETE_ALL_INSTANCES = "all"
View Source
const (
UnknowCommand = "unknown"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandProcessor ¶
type CommandProcessor struct {
// contains filtered or unexported fields
}
func NewCommandProcessor ¶
func NewCommandProcessor() *CommandProcessor
func (*CommandProcessor) Process ¶
func (p *CommandProcessor) Process(update *telegram.Update)
func (*CommandProcessor) Register ¶
func (p *CommandProcessor) Register(command Command, processor Processor)
func (*CommandProcessor) RegisterFallback ¶
func (p *CommandProcessor) RegisterFallback(processor Processor)
type CreateProcessor ¶
type CreateProcessor struct {
// contains filtered or unexported fields
}
func NewCreateProcessor ¶
func NewCreateProcessor(client *telegram.Client, vpnSvc *service.VPNService, peerSvc *service.PeerService) CreateProcessor
func (CreateProcessor) CreatePeer ¶
func (p CreateProcessor) CreatePeer(ipAddress, publicKey, username string, update *telegram.Update) error
type DeleteProcessor ¶
type DeleteProcessor struct {
// contains filtered or unexported fields
}
func NewDeleteProcessor ¶
func NewDeleteProcessor(client *telegram.Client, vpnSvc *service.VPNService, peerSvc *service.PeerService) DeleteProcessor
type DocsProcessor ¶
type DocsProcessor struct {
}
func NewDocsProcessor ¶
func NewDocsProcessor(client *telegram.Client) *DocsProcessor
type ListProcessor ¶
type ListProcessor struct {
// contains filtered or unexported fields
}
func NewListProcessor ¶
func NewListProcessor(client *telegram.Client, vpnService *service.VPNService, peerService *service.PeerService) ListProcessor
type ProcessorShared ¶
type ProcessorShared struct {
}
func (ProcessorShared) SendMessage ¶
func (p ProcessorShared) SendMessage(msg string, update *telegram.Update)
type SettingsProcessor ¶
type SettingsProcessor struct {
// contains filtered or unexported fields
}
func NewSettingsProcessor ¶
func NewSettingsProcessor(client *telegram.Client, ssm *aws.SSM, cfg *config.DonkeyVPNConfig) *SettingsProcessor
type UnknowCommandProcessor ¶
type UnknowCommandProcessor struct {
}
func NewUnknowCommandProcessor ¶
func NewUnknowCommandProcessor(client *telegram.Client) UnknowCommandProcessor
Click to show internal directories.
Click to hide internal directories.