entities

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status(code int, reason string) error

Types

type GroupUser

type GroupUser struct {
	UserCiphertext []byte
	GroupPublicKey []byte
	GroupId        []byte
	StrGroupId     string
	StrUserUUId    string
}

func (*GroupUser) IsMember

func (user *GroupUser) IsMember(uuid, groupPublicKey []byte) bool

type Resp

type Resp struct {
	Obj interface{} `json:"obj"`
}

type ResponseStatus

type ResponseStatus struct {
	Code     int    `json:"code"    example:"200"`
	Message  string `json:"message" example:"OK"`
	Reason   string `json:"reason"  example:"param error"`
	File     string `json:"file"    example:"param error"`
	Line     int    `json:"line"    example:"param error"`
	FuncName string `json:"func"`
}

func (*ResponseStatus) Error

func (rs *ResponseStatus) Error() string

Jump to

Keyboard shortcuts

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