server

package
v0.0.0-...-f4c426e Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package server implements the gRPC server for the authentication service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedClientServiceServer
	DB     *db.Queries
	Logger *zap.Logger
}

Server represents the gRPC server for authentication.

func NewServer

func NewServer(logger *zap.Logger, pool *pgxpool.Pool) *Server

NewServer creates a new instance of the authentication server.

func (*Server) CreateClient

func (s *Server) CreateClient(ctx context.Context, req *pb.CreateClientRequest) (*pb.CreateClientResponse, error)

func (*Server) DeleteClient

func (s *Server) DeleteClient(ctx context.Context, req *pb.DeleteClientRequest) (*pb.DeleteClientResponse, error)

func (*Server) GetClient

func (s *Server) GetClient(ctx context.Context, req *pb.GetClientRequest) (*pb.GetClientResponse, error)

func (*Server) ListClients

func (s *Server) ListClients(ctx context.Context, req *pb.ListClientsRequest) (*pb.ListClientsResponse, error)

func (*Server) UpdateClient

func (s *Server) UpdateClient(ctx context.Context, req *pb.UpdateClientRequest) (*pb.UpdateClientResponse, error)

Jump to

Keyboard shortcuts

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