server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(opts Options) *gin.Engine

Types

type Options

type Options struct {
	Env             string
	AuthSecret      string
	HTMLTemplate    *template.Template
	InstanceHandler *handler.InstanceHandler
	MessageHandler  *handler.MessageHandler
	WhatsAppHandler *handler.WhatsAppHandler
	AuthHandler     *handler.AuthHandler
	APITokenHandler *handler.APITokenHandler
	HealthHandler   *handler.HealthHandler
	UserHandler     *handler.UserHandler
	MediaHandler    *handler.MediaHandler
	WebhookPool     *webhook.Pool
	APITokenService interface{}
	InstanceRepo    interface{}
	RateLimit       middleware.RateLimitOption
}

Jump to

Keyboard shortcuts

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