user

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName(s *server.Server) gin.HandlerFunc

func GetType

func GetType(s *server.Server) gin.HandlerFunc

func NewService

func NewService(api *server.RouterGroup)

Types

type NameReply

type NameReply struct {
	Success bool   `json:"success"`
	Name    string `json:"name"`
}

NameReply defines the reply from /api/user/name

type TypeReply

type TypeReply struct {
	Success bool       `json:"success"`
	Type    users.Type `json:"type"`
}

TypeReply defines the reply from /api/user/type

Jump to

Keyboard shortcuts

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