handler

package
v0.0.0-...-b957f84 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardHTTPHandler

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

DashboardHTTPHandler type

func NewDashboardHTTPHandler

func NewDashboardHTTPHandler(tobConfig config.Config, logger *log.Logger) (*DashboardHTTPHandler, error)

NewDashboardHTTPHandler DashboardHTTPHandler's constructor

func (*DashboardHTTPHandler) GetServices

func (h *DashboardHTTPHandler) GetServices() http.HandlerFunc

GetServices will return tob services

func (*DashboardHTTPHandler) HandleTobWebhook

func (h *DashboardHTTPHandler) HandleTobWebhook() http.HandlerFunc

HandleTobWebhook will handle webhook that send by Tob

func (*DashboardHTTPHandler) Login

func (h *DashboardHTTPHandler) Login(jwtService utils.JwtService) http.HandlerFunc

Login will handle user login

type Data

type Data struct {
	Data           map[string]map[string]interface{} `json:"data"`
	DashboardTitle string                            `json:"dashboardTitle"`
}

Data type

type LoginPayload

type LoginPayload struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

LoginPayload type

type LoginResponse

type LoginResponse struct {
	Username  string `json:"username"`
	JWTString string `json:"jwtString"`
}

LoginResponse type

type WebhookMessage

type WebhookMessage struct {
	Message string `json:"message"`
}

WebhookMessage type

Jump to

Keyboard shortcuts

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