start

package
v0.0.0-...-c4bfc47 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckReminders

func CheckReminders(token, locale string)

CheckReminders will check the dates of the user's reminder and if they are outdated, remove them

func ExecuteModules

func ExecuteModules(token, locale string)

ExecuteModules will execute all the registered start modules with the user token

func GetMessage

func GetMessage() string

GetMessage returns the messages that needs to be sent

func RegisterModule

func RegisterModule(module Module)

RegisterModule registers the given module in the array

func RemoveUserReminder

func RemoveUserReminder(token string, index int)

RemoveUserReminder removes the reminder at a specific index in the user's information

func SetMessage

func SetMessage(_message string)

SetMessage register the message which will be sent to the client

Types

type Module

type Module struct {
	Action func(string, string)
}

A Module is a module that will be executed when a connection is opened by a user

Jump to

Keyboard shortcuts

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