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 ¶
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 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)
Click to show internal directories.
Click to hide internal directories.