Suuuuuper simple Zulip sender in Go
| zcli | Updates for codeberg. | |
| zlog | Updates for codeberg. | |
| .gitignore | Initial commit | |
| go.mod | Updates for codeberg. | |
| go.sum | Initial push of a send-only Zulip interface | |
| LICENSE | Initial commit | |
| README.md | Updates for codeberg. | |
| zulip.go | Migrates deprecated ioutil functions to io | |
zulip
import "codeberg.org/mgkeller/go-zulipsend"
Overview
Index
Package files
Variables
var(// DebugOut is a log.Logger that gets debug output. Hook it up to get outputDebugOut=log.New(io.Discard,"[DEBUG]",log.Lshortfile))type Zulip
typeZulipstruct{BaseURLstringUsernamestringTokenstringRetriesint// Number of times to retry sending a message (disabled with 0)Intervaltime.Duration// Interval between retries}Zulip is a struct to enable repeatable transmissions to a Zulip instance
func (*Zulip) Send
func(z*Zulip)Send(stream,topic,messagestring)(errerror)Send a message to Zulip, possibly retrying if Interval > 0
func (*Zulip) ToWriter
func(z*Zulip)ToWriter(stream,topicstring)io.WriterToWriter returns an io.Writer (zulip.Writer) suitable of being pumped into a log.New or anywhere else you can use an io.Writer
Generated by godoc2md