slack

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (Client) SendFileContent

func (c Client) SendFileContent(ctx context.Context, channel, filename, content, title string) error

func (Client) SendText

func (c Client) SendText(ctx context.Context, channel, text string) error

type ClientIface

type ClientIface interface {
	SendText(ctx context.Context, channel, text string) error
	SendFileContent(ctx context.Context, channel, filename, content, title string) error
}

func NewClient

func NewClient(logger *zap.Logger, token, channel string) ClientIface

func NewFakeClient

func NewFakeClient(logger *zap.Logger) ClientIface

type FakeClient

type FakeClient struct {
	// contains filtered or unexported fields
}

func (FakeClient) SendFileContent

func (c FakeClient) SendFileContent(ctx context.Context, channel, filename, content, title string) error

func (FakeClient) SendText

func (c FakeClient) SendText(ctx context.Context, channel, text string) error

Jump to

Keyboard shortcuts

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