Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeReceiverChannel = "channel" TypeReceiverUser = "user" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.4.1
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶ added in v0.4.1
func NewClient(opts ...ClientOption) *Client
func (*Client) GetWorkspaceChannels ¶ added in v0.4.1
type ClientCallOption ¶ added in v0.4.1
type ClientCallOption func(*clientData)
func CallWithClientSecret ¶ added in v0.4.1
func CallWithClientSecret(authCode string, clientID, clientSecret string) ClientCallOption
func CallWithGoSlackClient ¶ added in v0.4.1
func CallWithGoSlackClient(gsc GoSlackCaller) ClientCallOption
func CallWithToken ¶ added in v0.4.1
func CallWithToken(token string) ClientCallOption
type ClientOption ¶ added in v0.4.1
type ClientOption func(*Client)
func ClientWithHTTPClient ¶ added in v0.4.1
func ClientWithHTTPClient(httpClient *http.Client) ClientOption
type Credential ¶ added in v0.4.1
type GoSlackCaller ¶ added in v0.4.1
type GoSlackCaller interface { GetConversationsForUserContext(ctx context.Context, params *goslack.GetConversationsForUserParameters) (channels []goslack.Channel, nextCursor string, err error) GetUserByEmailContext(ctx context.Context, email string) (*goslack.User, error) SendMessageContext(ctx context.Context, channel string, options ...goslack.MsgOption) (string, string, string, error) }
Click to show internal directories.
Click to hide internal directories.