service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 10 Imported by: 0

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 (*CoreService) Welcome

Welcome is a service method that returns a welcome message.

Jump to

Keyboard shortcuts

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