server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const HTML = `` /* 6040-byte string literal not displayed */

Variables

This section is empty.

Functions

func CreateErrMsg added in v0.1.1

func CreateErrMsg(code int, message string) (output []byte)

func CreateSuccessMsg added in v0.1.1

func CreateSuccessMsg[T any](message string, data T) (output []byte)

func NewFileServer

func NewFileServer() *cobra.Command

Types

type Result added in v0.1.1

type Result[T any] struct {
	Code    int    `json:"code"`
	Data    T      `json:"data"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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