Documentation ¶
Index ¶
- type Service
- func (s *Service) Close()
- func (s *Service) CreateUser(c context.Context, user *model.User) error
- func (s *Service) DeleteUser(c context.Context, uid int64) error
- func (s *Service) Ping(ctx context.Context) (err error)
- func (s *Service) ReadGrpcPingCount(c context.Context) model.PingCount
- func (s *Service) ReadHttpPingCount(c context.Context) model.PingCount
- func (s *Service) ReadUser(c context.Context, uid int64) (model.User, error)
- func (s *Service) UpdateGrpcPingCount(c context.Context, pingcount model.PingCount)
- func (s *Service) UpdateHttpPingCount(c context.Context, pingcount model.PingCount)
- func (s *Service) UpdateUser(c context.Context, user *model.User) error
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Cfgpath string // contains filtered or unexported fields }
Service service.
func (*Service) CreateUser ¶
func (*Service) ReadGrpcPingCount ¶
func (*Service) ReadHttpPingCount ¶
func (*Service) UpdateGrpcPingCount ¶
grpc
func (*Service) UpdateHttpPingCount ¶
http
type ServiceConfig ¶
type ServiceConfig struct {
Cfgversion string `yaml:"cfgversion"`
}
Service conf
Click to show internal directories.
Click to hide internal directories.