service

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Svc added in v1.1.0

type Svc interface {
	UpdateHttpPingCount(c context.Context, pingcount PingCount) error
	ReadHttpPingCount(c context.Context) (PingCount, error)
	UpdateGrpcPingCount(c context.Context, pingcount PingCount) error
	ReadGrpcPingCount(c context.Context) (PingCount, error)
	CreateUser(c context.Context, user *User) error
	UpdateUser(c context.Context, user *User) error
	ReadUser(c context.Context, uid int64) (User, error)
	DeleteUser(c context.Context, uid int64) error

	Ping(ctx context.Context) (err error)
	Close()
}

func New

func New(cfgpath string, d dao.Dao) (Svc, func(), error)

New new a service and return.

Jump to

Keyboard shortcuts

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