commService

package
v0.0.0-...-77e6e3b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNameOrPassword = errors.New("用户名或密码错误")
	ErrDial               = errors.New("LDAP链接错误")
	ErrSearch             = errors.New("LDAP用户信息查询失败")
	ErrSearchNil          = errors.New("LDAP用户信息查询为空")
)
View Source
var (
	ErrEmpty = errors.New("请上传正确的文件")
)

Functions

func GetFileName

func GetFileName(name string) (string, error)

GetFileName 获取文件名称

Types

type FileService

type FileService struct {
}

func (*FileService) UploadFile

func (s *FileService) UploadFile(ctx iris.Context, fh *multipart.FileHeader) (ret string, err error)

UploadFile 上传文件

func (*FileService) UploadFileByPath

func (s *FileService) UploadFileByPath(ctx iris.Context, fh *multipart.FileHeader, path string) (ret string, err error)

UploadFile 上传文件

type LdapService

type LdapService struct {
}

func (*LdapService) LdapUserInfo

func (s *LdapService) LdapUserInfo(req v1.LoginReq) (userBase v1.UserBase, err error)

func (*LdapService) Login

func (s *LdapService) Login(req v1.LoginReq) (err error)

type PrefixedLogger

type PrefixedLogger struct {
	Prefix string
}

func (*PrefixedLogger) Log

func (s *PrefixedLogger) Log(msg string)

type WebSocketService

type WebSocketService struct {
}

func (*WebSocketService) Broadcast

func (s *WebSocketService) Broadcast(namespace, room, event string, data interface{})

func (*WebSocketService) SendMsg

func (s *WebSocketService) SendMsg(namespace, room string, data interface{})

func (*WebSocketService) SetConn

func (s *WebSocketService) SetConn(conn *neffos.Conn)

Jump to

Keyboard shortcuts

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