http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BucketsInfo

func BucketsInfo(c *gin.Context)

func GroupInfo

func GroupInfo(c *gin.Context)

func GroupsInfo

func GroupsInfo(c *gin.Context)

func SetupEngine

func SetupEngine(e *gin.Engine) *gin.Engine

func Start

func Start(addr string, svcCtx *svc.ServiceContext) *http.Server

func StaticsNumb

func StaticsNumb(c *gin.Context)

func UserInfo

func UserInfo(c *gin.Context)

Types

type Bucket

type Bucket struct {
	UserNum  int
	GroupNum int
	Users    []string
	Groups   []string
}

type Group

type Group struct {
	GID          string            `json:"gid"`
	Members      map[string]string `json:"members"`
	MemberNumber int               `json:"member_number"`
}

type Numbers

type Numbers struct {
	BucketsNumber int `json:"buckets_number"`
	UsersNumber   int `json:"users_number"`
	GroupsNumber  int `json:"groups_number"`
}

type User

type User struct {
	ChIndex int      `json:"ch_index"`
	Seq     int32    `json:"seq"`
	Key     string   `json:"key"`
	IP      string   `json:"ip"`
	Port    string   `json:"port"`
	Groups  []string `json:"groups"`
}

Jump to

Keyboard shortcuts

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