service

package
v1.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 {
	HandPingHttp(c context.Context) (PingCount, error)
	HandPingGrpc(c context.Context) (PingCount, error)

	CreateUser(c context.Context, user *User) error
	ReadUser(c context.Context, uid int64) (User, error)
	UpdateUser(c context.Context, user *User) error
	DeleteUser(c context.Context, uid int64) error

	Ping(c 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