Documentation ¶
Index ¶
Constants ¶
View Source
const EnvToken = "TYPETALK_TOKEN"
EnvToken is Typetalk API Token
View Source
const EnvTopicID = "TYPETALK_TOPIC_ID"
EnvTopicID is Typetalk topic ID
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
ChatPostMessage(ctx context.Context, message string) (*typetalk.PostedMessageResult, *typetalkShared.Response, error)
}
API is Typetalk API interface
type Client ¶
type Client struct { *typetalk.Client Config Config Notify *NotifyService API API // contains filtered or unexported fields }
Client represents Typetalk API client.
type Config ¶
type Config struct { Token string Title string TopicID string Message string CI string Parser terraform.Parser Template terraform.Template }
Config is a configuration for Typetalk Client
type Typetalk ¶
Typetalk represents the attribute information necessary for requesting Typetalk API
func (*Typetalk) ChatPostMessage ¶
func (t *Typetalk) ChatPostMessage(ctx context.Context, message string) (*typetalk.PostedMessageResult, *typetalkShared.Response, error)
ChatPostMessage is wrapper for https://godoc.org/github.com/nulab/go-typetalk/typetalk/v1#MessagesService.PostMessage
Click to show internal directories.
Click to hide internal directories.