mattermost

package
v0.0.0-...-5483c66 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClientWithCredentials

func InitClientWithCredentials(credentials *Config, allowInsecureSHA1, allowInsecureTLS bool) (*model.Client4, string, error)

func NewAPIv4Client

func NewAPIv4Client(instanceURL string, allowInsecureSHA1, allowInsecureTLS bool) *model.Client4

func VerifyCertificates

func VerifyCertificates(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error

Types

type Config

type Config struct {
	AuthToken   string `json:"authToken"`
	InstanceURL string `json:"instanceUrl"`
}

Config is the information needed to communicate with Mattermost.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig loads a Config from a JSON file.

Jump to

Keyboard shortcuts

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