Documentation ¶ Overview ¶ Package publisher handles pubsub topic creation and message publication Index ¶ type Publisher func New(ctx context.Context, projectName, topicName, servAccPath string) (Publisher, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Publisher ¶ type Publisher interface { // PublishResult publishes the poll result to the topic specified on New() PublishResult(context.Context, *pb.PollResult) (*string, error) // Close the pubsub client Close() } Publisher publishes a poll result to the topic func New ¶ func New(ctx context.Context, projectName, topicName, servAccPath string) (Publisher, error) New returns a new instance of a Publisher Source Files ¶ View all Source files doc.go publisher.go Click to show internal directories. Click to hide internal directories.