goteamsnotify

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 7 Imported by: 0

README

Build Status Github Tag

Coverage Status Maintainability codecov

Go Report Card GoDoc License


go-teams-notify

A package to send messages to Microsoft Teams (channels)

...

Usage

To get the package, execute:

go get gopkg.in/dasrick/go-teams-notify.v1

To import this package, add the following line to your code:

import "gopkg.in/dasrick/go-teams-notify.v1"

ToDo

  • model of active-card ... see at link section under adaptivecards.io
  • gopkg
  • usage section
  • coveralls/codecov

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(incomingWebhookURL string, webhookMessage MessageCard) error

Send - will post a notification to MS Teams incomingWebhookURL

Types

type MessageCard

type MessageCard struct {
	Title      string `json:"title"`
	Text       string `json:"text"`
	ThemeColor string `json:"themeColor,omitempty"`
}

MessageCard - struct of message card

func NewMessageCard

func NewMessageCard() MessageCard

NewMessageCard - create new empty message card

Jump to

Keyboard shortcuts

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