commands

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Service commands provides a variety of simple functions.

Index

Constants

This section is empty.

Variables

View Source
var Module = &services.Module{
	Name:        "commands",
	Version:     "1.0",
	NewInstance: NewService,
}

Functions

This section is empty.

Types

type CatFactsResponse

type CatFactsResponse struct {
	Facts   []string `json:"facts"`
	Success bool     `json:"success,string"`
}

func (CatFactsResponse) String

func (r CatFactsResponse) String() string

type Dependencies

type Dependencies struct {
	Client sarif.Client
}

type Service

type Service struct {
	sarif.Client
}

func NewService

func NewService(deps *Dependencies) *Service

func (*Service) Enable

func (s *Service) Enable() error

func (*Service) ReplyText

func (s *Service) ReplyText(orig sarif.Message, text string) error

Jump to

Keyboard shortcuts

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