Documentation ¶
Index ¶
- func ImageInfo(width, height int) (info string, err error)
- func MD5Sum(file string) string
- type Service
- func (s *Service) AsyncWaterMarkSet(wp *watermark.WatermarkParam)
- func (s *Service) Close()
- func (s *Service) GenWm(c context.Context, mid int64, uname, ip string) (wm *watermark.Watermark, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) WaterMark(c context.Context, mid int64) (w *watermark.Watermark, err error)
- func (s *Service) WaterMarkSet(c context.Context, wp *watermark.WatermarkParam) (wm *watermark.Watermark, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
func (*Service) AsyncWaterMarkSet ¶
func (s *Service) AsyncWaterMarkSet(wp *watermark.WatermarkParam)
AsyncWaterMarkSet fn
func (*Service) GenWm ¶
func (s *Service) GenWm(c context.Context, mid int64, uname, ip string) (wm *watermark.Watermark, err error)
GenWm for new genwm api.
func (*Service) WaterMarkSet ¶
func (s *Service) WaterMarkSet(c context.Context, wp *watermark.WatermarkParam) (wm *watermark.Watermark, err error)
WaterMarkSet set watermark for user.
Click to show internal directories.
Click to hide internal directories.