slack

package module
v0.0.0-...-b6b9725 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 10 Imported by: 0

README

* yet another slack client for go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Start() error
	Send(v interface{}) error
	Handle(kind string, handlerFunc interface{})
	User() User
}

type Connection

type Connection struct {
	Token string
	Debug bool
	// contains filtered or unexported fields
}

func (*Connection) Handle

func (s *Connection) Handle(kind string, handlerFunc interface{})

func (*Connection) Send

func (c *Connection) Send(v interface{}) error

func (*Connection) Start

func (c *Connection) Start() error

func (*Connection) User

func (c *Connection) User() User

type MockConnection

type MockConnection struct {
	In       []interface{}
	Out      []interface{}
	MockUser User
	// contains filtered or unexported fields
}

func (*MockConnection) Handle

func (s *MockConnection) Handle(kind string, handlerFunc interface{})

func (*MockConnection) Send

func (c *MockConnection) Send(v interface{}) error

func (*MockConnection) Start

func (c *MockConnection) Start() error

func (*MockConnection) User

func (c *MockConnection) User() User

type User

type User struct {
	ID   string `json: "id"`
	Name string `json: "name"`
}

Jump to

Keyboard shortcuts

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