notify

package module
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 13 Imported by: 0

README

notify-pkg

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	*grpc.ClientConn
	proto.NotificationServiceClient
	grpc_health_v1.HealthClient
	// contains filtered or unexported fields
}

Api is profile-service GRPC Api structure with client Connection

func NewApi added in v0.0.5

func NewApi(addr string) (*Api, error)

type INotificator added in v0.0.5

type INotificator interface {
	GetAllAppliedCandidatesByNoty(notyUuid string) ([]*models.Notification, error)

	GetEmployerByVac(vacReq string) (string, error)
	UpdateReadNotification(noteUuid string) (error, bool)
	NewRegisterNotification(req *models.MessageNotification)
	NewUpdateNotification(req *models.MessageNotification)
	GetAllUnreadCount(employerUuid string) ([]*models.Notification, error)
	Stop()
}

func NewNotificator added in v0.0.5

func NewNotificator(kafkaAdd, grpcAddr string, timeout time.Duration) (INotificator, error)

Directories

Path Synopsis
protocols

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳