service

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Service

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

Service service.

func New

func New(d dao.Dao) (s *Service, cf func())

New new a service and return.

func (*Service) Close

func (s *Service) Close()

Close close the resource.

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) error

Ping ping the resource.

func (*Service) SayHello

func (s *Service) SayHello(ctx context.Context, req api.HelloReq) (resp api.HelloResp, err error)

SayHello demo func.

Jump to

Keyboard shortcuts

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