pubsub

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OpenAIToken   string
	SlackBotToken string
	Model         string
}

type PubSub

type PubSub struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*PubSub, error)

func (*PubSub) GenerateFromPubSub

func (p *PubSub) GenerateFromPubSub(ctx context.Context, m PubSubMessage) error

type PubSubMessage

type PubSubMessage struct {
	Data []byte `json:"data"`
}

Jump to

Keyboard shortcuts

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