slack

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelResource

type ChannelResource struct {
	Id   string
	Name string
}

type ChannelResponse

type ChannelResponse struct {
	Response
	Channel ChannelResource
}

type ChatPostMessageResponse

type ChatPostMessageResponse struct {
	Response
	Channel string
	Message MessageResource
}

type Event

type Event map[string]interface{}

type MessageResource

type MessageResource struct {
}

type MethodCall

type MethodCall struct {
	Url  string
	Data url.Values
}

func Method

func Method(name string, d url.Values) (mc *MethodCall, err error)

func (*MethodCall) Exec

func (m *MethodCall) Exec(resp interface{}) (err error)

type RTMSession

type RTMSession struct {
	Events chan Event
	Self   *SelfResource
	Team   *TeamResource
	Url    string
	Users  []UserResource
	// contains filtered or unexported fields
}

func RTMStart

func RTMStart() (rtm *RTMSession, err error)

func (*RTMSession) User

func (rtm *RTMSession) User(id string) *UserResource

type RTMStartResponse

type RTMStartResponse struct {
	Response
	Url   string
	Self  *SelfResource
	Team  *TeamResource
	Users []UserResource
}

type Response

type Response struct {
	Ok    bool
	Error string
}

type SelfResource

type SelfResource struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type TeamResource

type TeamResource struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	EmailDomain string `json:"email_domain"`
	Domain      string `json:"domain"`
}

type UserResource

type UserResource struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL