space

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 6 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 NewClient

func NewClient(settings *ClientSettings) *Client

func (*Client) SendMessage

func (c *Client) SendMessage(ctx context.Context, message *Message) error

type ClientSettings

type ClientSettings struct {
	BaseURL      string
	ClientID     string
	ClientSecret string
}

type Message

type Message struct {
	Recipient *MessageRecipient `json:"recipient"`
	Content   *MessageContent   `json:"content"`
}

type MessageChannel

type MessageChannel struct {
	ClassName string `json:"className"`
	ID        string `json:"id"`
}

type MessageContent

type MessageContent struct {
	ClassName string                   `json:"className"`
	Style     string                   `json:"style"`
	Sections  []*MessageContentSection `json:"sections"`
}

type MessageContentSection

type MessageContentSection struct {
	ClassName string                          `json:"className"`
	Header    string                          `json:"header"`
	Elements  []*MessageContentSectionElement `json:"elements"`
	Footer    string                          `json:"footer"`
}

type MessageContentSectionElement

type MessageContentSectionElement struct {
	ClassName string `json:"className"`
	Content   string `json:"content"`
}

type MessageRecipient

type MessageRecipient struct {
	ClassName string          `json:"className"`
	Channel   *MessageChannel `json:"channel"`
}

Jump to

Keyboard shortcuts

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