client

package
v0.0.0-...-859a9ad Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SlackBot *slacker.Slacker

SlackBot slack client.

Functions

func GetObejctURL

func GetObejctURL(objectName string) string

GetObejctURL get object url with objectName from minio.

func GetObject

func GetObject(objectName string) (io.Reader, error)

GetObject get object from minio.

func GetObjectUrlForADay

func GetObjectUrlForADay(objectName string) (string, error)

GetObjectUrlForADay get object url from minio. Time is one day.

func InitMail

func InitMail()

InitMail init mail.

func InitMinio

func InitMinio()

InitMinio init minio client.

func InitSlack

func InitSlack() *slacker.Slacker

InitSlack init slack client.

func PutObject

func PutObject(objectName string, r io.Reader, objectSize int64) error

PutObject put object to minio.

func SendEmail

func SendEmail(to string, subject string, body string) error

SendEmail send email.

func SendHtmlEmail

func SendHtmlEmail(to string, subject string, html string) error

SendHtmlEmail send html email.

Types

This section is empty.

Jump to

Keyboard shortcuts

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