service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 7 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.

func New

func New(cfgpath string, d *dao.Dao) *Service

New.

func (*Service) Close

func (s *Service) Close()

Close.

func (*Service) Ping

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

Ping.

func (*Service) ReadGrpcPingCount

func (s *Service) ReadGrpcPingCount(c context.Context) (model.PingCount, error)

func (*Service) ReadHttpPingCount

func (s *Service) ReadHttpPingCount(c context.Context) (model.PingCount, error)

func (*Service) UpdateGrpcPingCount

func (s *Service) UpdateGrpcPingCount(c context.Context, pingcount model.PingCount) error

grpc

func (*Service) UpdateHttpPingCount

func (s *Service) UpdateHttpPingCount(c context.Context, pingcount model.PingCount) error

http

Jump to

Keyboard shortcuts

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