bot

package
v3.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package bot is a Hubot style bot that sits a microservice environment

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default server name
	Name = "go.micro.bot"
	// Namespace for commands
	Namespace = "go.micro.bot"
)

Functions

func Call

func Call(ctx *cli.Context) command.Command

Call returns a service call

func Echo

func Echo(ctx *cli.Context) command.Command

Echo returns the same message

func Get

func Get(ctx *cli.Context) command.Command

Get service returns a service

func Health

func Health(ctx *cli.Context) command.Command

Health returns the health of a service

func Hello

func Hello(ctx *cli.Context) command.Command

Hello returns a greeting

func List

func List(ctx *cli.Context) command.Command

List returns a list of services

func Ping

func Ping(ctx *cli.Context) command.Command

Ping returns pong

func Run

func Run(ctx *cli.Context) error

func ThreeLaws

func ThreeLaws(ctx *cli.Context) command.Command

Laws of robotics

func Time

func Time(ctx *cli.Context) command.Command

Time returns the time

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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