Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "slack"
ModuleName is the module name.
Variables ¶
View Source
var FxSlackModule = fx.Module( ModuleName, fx.Provide( NewSlackTestServer, NewSlackClient, ), )
FxSlack is the Fx slack module.
Functions ¶
func NewSlackClient ¶
func NewSlackClient(p FxSlackClientParam) *slack.Client
NewSlackClient returns a slack.Client.
func NewSlackTestServer ¶
func NewSlackTestServer(p FxSlackTestServerParam) *slacktest.Server
NewSlackTestServer returns a slacktest.Server.
Types ¶
type FxSlackClientParam ¶
type FxSlackClientParam struct { fx.In LifeCycle fx.Lifecycle HttpRoundTripper http.RoundTripper Config *config.Config TestServer *slacktest.Server }
FxSlackClientParam allows injection of the required dependencies in NewSlackClient.
type FxSlackTestServerParam ¶
FxSlackTestServerParam allows injection of the required dependencies in NewSlackTestServer.
Click to show internal directories.
Click to hide internal directories.