hub

package
v0.0.0-...-3904f54 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

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

func NewHub

func NewHub(orm *gorm.DB, secretKey, salt string) *Hub

func (*Hub) AddRuleHandler

func (hub *Hub) AddRuleHandler() func(c *gin.Context)

func (*Hub) AddUserHandler

func (hub *Hub) AddUserHandler() gin.HandlerFunc

func (*Hub) DeleteRuleHandler

func (hub *Hub) DeleteRuleHandler() gin.HandlerFunc

func (*Hub) DeleteUserHandler

func (hub *Hub) DeleteUserHandler() gin.HandlerFunc

func (*Hub) GetRuleHandler

func (hub *Hub) GetRuleHandler() func(c *gin.Context)

func (*Hub) GetRuleListHandler

func (hub *Hub) GetRuleListHandler() gin.HandlerFunc

func (*Hub) GetUserHandler

func (hub *Hub) GetUserHandler() gin.HandlerFunc

func (*Hub) GetUserListHandler

func (hub *Hub) GetUserListHandler() gin.HandlerFunc

func (*Hub) Server

func (hub *Hub) Server(port string) *http.Server

func (*Hub) UpdateRuleHandler

func (hub *Hub) UpdateRuleHandler() func(c *gin.Context)

func (*Hub) UpdateUserHandler

func (hub *Hub) UpdateUserHandler() gin.HandlerFunc

func (*Hub) UpdateUserResetPasswordHandler

func (hub *Hub) UpdateUserResetPasswordHandler() gin.HandlerFunc

type Sender

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

func NewSender

func NewSender() *Sender

func (*Sender) Send

func (s *Sender) Send(send types.RestySendRequest) (*resty.Response, error)

Jump to

Keyboard shortcuts

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