github.com/blend/go-sdk@v1.20220411.3/slack/sender.go (about)

     1  /*
     2  
     3  Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package slack
     9  
    10  import "context"
    11  
    12  // Sender is a type that can send slack messages.
    13  type Sender interface {
    14  	Send(ctx context.Context, msg Message) error
    15  	SendAndReadResponse(ctx context.Context, msg Message) (*PostMessageResponse, error)
    16  	PostMessage(channel string, messageText string, opts ...MessageOption) error
    17  	PostMessageContext(ctx context.Context, channel string, messageText string, opts ...MessageOption) error
    18  }