pubsub

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pubsub demonstrates adding a custom extension command to tcli without vendoring or copying files into the tcli module itself. It imports tcli's public pkg/cmd package and self-registers via cmd.RegisterCommand. Consumers only need to blank-import this package (e.g. `import _ "example.com/myclient/pubsub"`) from their main so its init() runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnsCommand

type SnsCommand struct {
	cmd.CmdBase
	Name     string
	Data     string
	Arn      string
	Endpoint string
}

func (*SnsCommand) Init

func (c *SnsCommand) Init(p *cmd.ParseResult) cmd.Command

type SqsCommand

type SqsCommand struct {
	cmd.CmdBase
	Data     string
	Url      string
	Endpoint string
}

func (*SqsCommand) Init

func (c *SqsCommand) Init(p *cmd.ParseResult) cmd.Command

Jump to

Keyboard shortcuts

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