emitter

package
v0.0.0-...-5fbc178 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VK

type VK struct {
	// contains filtered or unexported fields
}

VK is VK API message emitter.

func NewVK

func NewVK(client *api.VK, receiverIDs []int, ops ...VKOp) VK

NewVK creates new VK struct.

func (VK) Emit

func (v VK) Emit(ctxt context.Context, m hook.Message) error

type VKOp

type VKOp func(vk *VK)

VKOp is VK struct option function.

func WithIsUser

func WithIsUser(v bool) VKOp

WithIsUser sets user mode message sending.

func WithTemplate

func WithTemplate(t *template.Template) VKOp

WithTemplate sets message template.

Jump to

Keyboard shortcuts

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