service

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: 10 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 biz service def.

func New

func New(c *conf.Config) (s *Service)

New new a Service and return.

func (*Service) AddApp

func (s *Service) AddApp(c context.Context, appname string) (err error)

AddApp represents add an app.

func (*Service) Close

func (s *Service) Close()

Close close all dao.

func (*Service) DelApp

func (s *Service) DelApp(c context.Context, appid int64) (err error)

DelApp represents delete an app.

func (*Service) ListApp

func (s *Service) ListApp(c context.Context, t *model.AppListParams) (res []*model.App, total int64, err error)

ListApp represents search an app.

func (*Service) Ping

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

Ping check dao health.

func (*Service) UpdateApp

func (s *Service) UpdateApp(c context.Context, arg *model.AppParams) (err error)

UpdateApp represents update an app.

Jump to

Keyboard shortcuts

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