watermark

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageInfo

func ImageInfo(width, height int) (info string, err error)

ImageInfo for image info json.

func MD5Sum

func MD5Sum(file string) string

MD5Sum calculate file md5.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos, p *service.Public) *Service

New get service

func (*Service) AsyncWaterMarkSet

func (s *Service) AsyncWaterMarkSet(wp *watermark.WatermarkParam)

AsyncWaterMarkSet fn

func (*Service) Close

func (s *Service) Close()

Close dao

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) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping service

func (*Service) WaterMark

func (s *Service) WaterMark(c context.Context, mid int64) (w *watermark.Watermark, err error)

WaterMark get user watermark.

func (*Service) WaterMarkSet

func (s *Service) WaterMarkSet(c context.Context, wp *watermark.WatermarkParam) (wm *watermark.Watermark, err error)

WaterMarkSet set watermark for user.

Jump to

Keyboard shortcuts

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