Documentation ¶
Index ¶
- type Bark
- func (r *Bark) SendMsg(title, body string) error
- func (r *Bark) SendText(text string) error
- func (r *Bark) SetArchive(archive bool) *Bark
- func (r *Bark) SetAutoCopy(copy bool) *Bark
- func (r *Bark) SetBadge(badge int64) *Bark
- func (r *Bark) SetCopy(text string) *Bark
- func (r *Bark) SetDebug(debug bool) *Bark
- func (r *Bark) SetGet(get bool) *Bark
- func (r *Bark) SetGroup(group string) *Bark
- func (r *Bark) SetIcon(icon string) *Bark
- func (r *Bark) SetJumpUrl(url string) *Bark
- func (r *Bark) SetLevel(level int) *Bark
- func (r *Bark) SetSilently(silent bool) *Bark
- func (r *Bark) SetSound(name Sound) *Bark
- func (r *Bark) UseHost(url string) notice.Noticer
- func (r *Bark) UseSecret(secret string) notice.Noticer
- func (r *Bark) UseToken(token string) notice.Noticer
- type Response
- type Sound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bark ¶ added in v0.2.0
type Bark struct {
// contains filtered or unexported fields
}
func NewBark ¶ added in v0.2.0
NewBark host default is `https://api.day.app`
func (*Bark) SetArchive ¶ added in v0.2.0
func (*Bark) SetAutoCopy ¶ added in v0.2.0
SetAutoCopy auto copy
func (*Bark) SetJumpUrl ¶ added in v0.2.0
SetJumpUrl Jump to the address of URL
func (*Bark) SetSilently ¶ added in v0.3.0
SetSilently mute the sounds
type Sound ¶ added in v0.2.0
type Sound string
const ( SoundAlarm Sound = "alarm.caf" SoundAnticipate Sound = "anticipate.caf" SoundBell Sound = "bell.caf" SoundBirdsong Sound = "birdsong.caf" SoundBloom Sound = "bloom.caf" SoundCalypso Sound = "calypso.caf" SoundChime Sound = "chime.caf" SoundChoo Sound = "choo.caf" SoundDescent Sound = "descent.caf" SoundElectronic Sound = "electronic.caf" SoundFanfare Sound = "fanfare.caf" SoundGlass Sound = "glass.caf" SoundGotosleep Sound = "gotosleep.caf" SoundHealthnotification Sound = "healthnotification.caf" SoundHorn Sound = "horn.caf" SoundLadder Sound = "ladder.caf" SoundMailsent Sound = "mailsent.caf" SoundMinuet Sound = "minuet.caf" SoundMultiwayinvitation Sound = "multiwayinvitation.caf" SoundNewmail Sound = "newmail.caf" SoundNewsflash Sound = "newsflash.caf" SoundNoir Sound = "noir.caf" SoundPaymentsuccess Sound = "paymentsuccess.caf" SoundShake Sound = "shake.caf" SoundSherwoodforest Sound = "sherwoodforest.caf" SoundSilence Sound = "silence.caf" SoundSpell Sound = "spell.caf" SoundSuspense Sound = "suspense.caf" SoundTelegraph Sound = "telegraph.caf" SoundTiptoes Sound = "tiptoes.caf" SoundTypewriters Sound = "typewriters.caf" SoundUpdate Sound = "update.caf" )
Click to show internal directories.
Click to hide internal directories.