1
0
Fork
You've already forked go-zulipsend
0
Suuuuuper simple Zulip sender in Go
  • Go 100%
2023年03月11日 10:16:56 -05:00
zcli Updates for codeberg. 2023年03月11日 10:16:56 -05:00
zlog Updates for codeberg. 2023年03月11日 10:16:56 -05:00
.gitignore Initial commit 2022年06月12日 13:08:16 -04:00
go.mod Updates for codeberg. 2023年03月11日 10:16:56 -05:00
go.sum Initial push of a send-only Zulip interface 2022年06月12日 13:17:07 -04:00
LICENSE Initial commit 2022年06月12日 13:08:16 -04:00
README.md Updates for codeberg. 2023年03月11日 10:16:56 -05:00
zulip.go Migrates deprecated ioutil functions to io 2022年09月09日 13:05:41 -04:00

zulip

import "codeberg.org/mgkeller/go-zulipsend"

Overview

Index

Package files

zulip.go

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.Writer

ToWriter 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