grpc

package
v0.0.0-...-352fc9d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	corpus.GRPCConfig
}

type GRPC

type GRPC struct {
	corpus.GRPC[model.Profile]

	pb.UnimplementedEventServiceServer
	// contains filtered or unexported fields
}

func New

func New(cfg Config, svc *service.Service, log *otelzap.Logger) *GRPC

func (*GRPC) Accept

func (g *GRPC) Accept(ctx context.Context, request *pb.AcceptRequest) (*pb.AcceptResponse, error)

func (*GRPC) CreateEvent

func (g *GRPC) CreateEvent(ctx context.Context, request *pb.CreateEventRequest) (*pb.CreateEventResponse, error)

func (*GRPC) DeleteEvent

func (g *GRPC) DeleteEvent(ctx context.Context, request *pb.DeleteEventRequest) (*pb.DeleteEventResponse, error)

func (*GRPC) GetEvents

func (g *GRPC) GetEvents(request *pb.GetEventsRequest, stream pb.EventService_GetEventsServer) error

func (*GRPC) Invite

func (g *GRPC) Invite(ctx context.Context, request *pb.InviteRequest) (*pb.InviteResponse, error)

func (*GRPC) UpdateEvent

func (g *GRPC) UpdateEvent(ctx context.Context, request *pb.UpdateEventRequest) (*pb.UpdateEventResponse, error)

Jump to

Keyboard shortcuts

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