Documentation
¶
Index ¶
- func NewBlockquoteBlock(inner ...*pb.Block) *pb.Block
- func NewBoldBlock(inner ...*pb.Block) *pb.Block
- func NewContainerBlock(inner ...*pb.Block) *pb.Block
- func NewFencedCodeBlock(info string, text string) *pb.Block
- func NewHeadingBlock(level int, inner ...*pb.Block) *pb.Block
- func NewInlineCodeBlock(text string) *pb.Block
- func NewItalicsBlock(inner ...*pb.Block) *pb.Block
- func NewLinkBlock(url string, inner ...*pb.Block) *pb.Block
- func NewListBlock(inner ...*pb.Block) *pb.Block
- func NewSpoilerBlock(inner ...*pb.Block) *pb.Block
- func NewStrikethroughBlock(inner ...*pb.Block) *pb.Block
- func NewTextBlock(text string) *pb.Block
- func NewTextBlockf(format string, args ...any) *pb.Block
- func NewTimestampBlock(target time.Time) *pb.Block
- func NewUnderlineBlock(inner ...*pb.Block) *pb.Block
- type ChatIngestClient
- type Client
- func (c *Client) Close() error
- func (c *Client) MentionReply(source *pb.ChannelSource, msg string) error
- func (c *Client) MentionReplyf(source *pb.ChannelSource, format string, args ...interface{}) error
- func (c *Client) Reply(source *pb.ChannelSource, msg string) error
- func (c *Client) ReplyBlocks(source *pb.ChannelSource, blocks ...*pb.Block) error
- func (c *Client) Replyf(source *pb.ChannelSource, format string, args ...interface{}) error
- func (c *Client) StreamEvents(cmds map[string]*pb.CommandMetadata) (*EventStream, error)
- type EventStream
- type SeabirdChatIngestStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInlineCodeBlock ¶
func NewTextBlock ¶
Types ¶
type ChatIngestClient ¶
type ChatIngestClient struct {
Inner pb.ChatIngestClient
// contains filtered or unexported fields
}
func NewChatIngestClient ¶
func NewChatIngestClient(seabirdCoreUrl, seabirdCoreToken string) (*ChatIngestClient, error)
func (*ChatIngestClient) Close ¶
func (c *ChatIngestClient) Close() error
func (*ChatIngestClient) IngestEvents ¶
func (c *ChatIngestClient) IngestEvents(backendType, backendID string) (*SeabirdChatIngestStream, error)
type Client ¶
type Client struct {
Inner pb.SeabirdClient
// contains filtered or unexported fields
}
Client is a convenience wrapper around an inner gRPC SeabirdClient.
It handles authentication, HTTP/HTTPS connection boilerplate, and provides a wrapper around the StreamEvents method to make it easier to work with.
func (*Client) MentionReply ¶
func (c *Client) MentionReply(source *pb.ChannelSource, msg string) error
func (*Client) MentionReplyf ¶
func (c *Client) MentionReplyf(source *pb.ChannelSource, format string, args ...interface{}) error
func (*Client) ReplyBlocks ¶
func (*Client) Replyf ¶
func (c *Client) Replyf(source *pb.ChannelSource, format string, args ...interface{}) error
func (*Client) StreamEvents ¶
func (c *Client) StreamEvents(cmds map[string]*pb.CommandMetadata) (*EventStream, error)
type EventStream ¶
func (*EventStream) Close ¶
func (s *EventStream) Close() error
type SeabirdChatIngestStream ¶
type SeabirdChatIngestStream struct {
C <-chan *pb.ChatRequest
// contains filtered or unexported fields
}
func (*SeabirdChatIngestStream) Close ¶
func (s *SeabirdChatIngestStream) Close() error
Click to show internal directories.
Click to hide internal directories.