mtClient

package
v0.0.0-...-b91988d Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DestinationChannel = DestinationType("channel")
View Source
const DestinationUserEmail = DestinationType("userEmail")
View Source
const DestinationUserName = DestinationType("userName")

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationType

type DestinationType string

func GetType

func GetType(destination string) DestinationType

type MtClient

type MtClient struct {
	Client *model.Client4
	Me     *model.User
}

func NewClient

func NewClient(url string, mattermostAuthToken string) *MtClient

func (*MtClient) PostDirectMessageFromMe

func (m *MtClient) PostDirectMessageFromMe(userName string, message string) error

PostDirectMessageFromMe Simple func for sending direct messages In MM you can send messages only in channels! And direct - is a channel for two =)

Jump to

Keyboard shortcuts

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