server

package
v0.0.0-...-9e1cc8c Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifiyEventServer

type NotifiyEventServer struct {
	epb.UnimplementedEventNotificationServiceServer
	// contains filtered or unexported fields
}

func NewNotifyEventServer

func NewNotifyEventServer(orgName string, nRepo db.NotificationRepo, msgBus mb.MsgBusServiceClient, routes []string) *NotifiyEventServer

func (*NotifiyEventServer) EventNotification

func (n *NotifiyEventServer) EventNotification(ctx context.Context, e *epb.Event) (*epb.EventResponse, error)

type NotifyServer

type NotifyServer struct {
	pb.UnimplementedNotifyServiceServer
	// contains filtered or unexported fields
}

func NewNotifyServer

func NewNotifyServer(orgName string, nRepo db.NotificationRepo, msgBus mb.MsgBusServiceClient) *NotifyServer

func (*NotifyServer) Add

func (n *NotifyServer) Add(ctx context.Context, req *pb.AddRequest) (*pb.AddResponse, error)

func (*NotifyServer) Delete

func (n *NotifyServer) Delete(ctx context.Context, req *pb.GetRequest) (*pb.DeleteResponse, error)

func (*NotifyServer) Get

func (n *NotifyServer) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)

func (*NotifyServer) List

func (n *NotifyServer) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)

func (*NotifyServer) Purge

func (n *NotifyServer) Purge(ctx context.Context, req *pb.PurgeRequest) (*pb.ListResponse, error)

Jump to

Keyboard shortcuts

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