kavenegar_adapter

package
v0.0.0-...-bb1013f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiKey   string `koanf:"api_key" json:"api_key"`
	Template string `koanf:"template" json:"template"`
}

type KavenegarSvc

type KavenegarSvc struct {
	Service  *kavenegar.Kavenegar
	Template string
}

func New

func New(cfg Config) *KavenegarSvc

func (*KavenegarSvc) Send

func (svc *KavenegarSvc) Send(receptors []string, message string)

func (*KavenegarSvc) SendOTP

func (svc *KavenegarSvc) SendOTP(receptor string, token string)

Jump to

Keyboard shortcuts

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