terminalbot

package
v0.0.0-...-10acafb Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TerminalBot

type TerminalBot struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

TerminalBot Is the terminal running bot

func New

func New(addr string, nickname string, groups []string) *TerminalBot

func (*TerminalBot) ChatSend

func (t *TerminalBot) ChatSend(msg, channel string)

ChatSend implements the chat side of sending a message in riker for the TerminalBot

func (TerminalBot) CommandStream

func (t TerminalBot) CommandStream(reg *botpb.Registration, stream botpb.Riker_CommandStreamServer) error

CommandStream is the call a client makes to setup a Push stream from riker -> client

func (TerminalBot) NewRedShirt

func (t TerminalBot) NewRedShirt(ctx context.Context, cap *botpb.Capability) (*botpb.Registration, error)

NewRedShirt registers this shirt with the bot

func (TerminalBot) NextCommand

func (t TerminalBot) NextCommand(ctx context.Context, reg *botpb.Registration) (*botpb.Message, error)

NextCommand is the call a client makes to pull the next command from rikers command buffer

func (*TerminalBot) Run

func (t *TerminalBot) Run()

func (TerminalBot) Send

Send is the call a client makes to send a message back to riker

func (TerminalBot) SendStream

func (t TerminalBot) SendStream(stream botpb.Riker_SendStreamServer) error

SendStream is the call a client makes to send a stream message back to riker

Jump to

Keyboard shortcuts

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