template

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service struct

func New

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

New get service

func (*Service) AddTemplate

func (s *Service) AddTemplate(c context.Context, mid int64, typeid int16, cp, name, title, tag, content string, now time.Time) (err error)

AddTemplate add template for archive.

func (*Service) Close

func (s *Service) Close()

Close dao

func (*Service) DelTemplate

func (s *Service) DelTemplate(c context.Context, id, mid int64, now time.Time) (err error)

DelTemplate delete template.

func (*Service) Ping

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

Ping service

func (*Service) Templates

func (s *Service) Templates(c context.Context, mid int64) (tps []*template.Template, err error)

Templates get templates for archive.

func (*Service) UpdateTemplate

func (s *Service) UpdateTemplate(c context.Context, id, mid int64, typeid int16, cp, name, title, tag, content string, now time.Time) (err error)

UpdateTemplate update template for archive.

Jump to

Keyboard shortcuts

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