Documentation ¶
Index ¶
Constants ¶
View Source
const (
StatusUP = "UP"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreService ¶
type CoreService struct { rpc.UnimplementedGoMicroServer Logr zerolog.Logger // Logger is used for logging. Config config.Config // Config holds the configuration settings. // contains filtered or unexported fields }
CoreService represents the core service of your application.
func NewService ¶
func NewService(logr zerolog.Logger, config config.Config, mailer email.MailSender, store sqlc.Store) (*CoreService, error)
NewService creates a new instance of the CoreService.
func (*CoreService) Health ¶
func (s *CoreService) Health(ctx context.Context, req *rpc.HealthRequest) (*rpc.HealthResponse, error)
func (*CoreService) Welcome ¶
func (s *CoreService) Welcome(ctx context.Context, req *rpc.WelcomeRequest) (*rpc.WelcomeResponse, error)
Welcome is a service method that returns a welcome message.
Click to show internal directories.
Click to hide internal directories.