Documentation ¶ Index ¶ Variables type Service func New(d dao.Dao) (s *Service, cf func()) func (s *Service) Close() func (s *Service) Ping(ctx context.Context) error func (s *Service) SayHello(ctx context.Context, req api.HelloReq) (resp api.HelloResp, err error) Constants ¶ This section is empty. Variables ¶ View Source var Provider = wire.NewSet(New, wire.Bind(new(api.Server), new(*Service))) 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. Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.