cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type SlackFile

type SlackFile struct {
	Id                 string `json:"id"`
	Name               string `json:"name"`
	UrlPrivate         string `json:"url_private"`
	UrlPrivateDownload string `json:"url_private_download"`
}

type SlackPost

type SlackPost struct {
	User    string       `json:"user"`
	Type    string       `json:"type"`
	Subtype string       `json:"subtype"`
	Text    string       `json:"text"`
	Ts      string       `json:"ts"`
	File    *SlackFile   `json:"file"`
	Files   []*SlackFile `json:"files"`
}

type SlackUser

type SlackUser struct {
	Id      string           `json:"id"`
	Profile SlackUserProfile `json:"profile"`
}

As it appears in users.json and /api/users.list. There're obviously many more fields, but we only need a couple of them.

type SlackUserProfile

type SlackUserProfile struct {
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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