shared

package
v0.0.0-...-1ad4281 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserNameAndID

func GetUserNameAndID(c *fiber.Ctx) (userName string, userID int64, errApi apierr.APIErr)

GetUserNameAndID from :userName

func GetUserNameIDResp

func GetUserNameIDResp(c *fiber.Ctx) (string, int64, bool, error)

Types

type SuccessErrResp

type SuccessErrResp struct {
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

type SuccessIDErrResp

type SuccessIDErrResp struct {
	ID      int64  `json:"id,omitempty"`
	Success bool   `json:"success"`
	Error   string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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