server

package
v0.0.0-...-79f88fe Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type GRPCServer

type GRPCServer struct {
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(cfg *config.GRPCConfig, logger *zap.Logger, opts ...grpc.ServerOption) *GRPCServer

func (*GRPCServer) Server

func (s *GRPCServer) Server() *grpc.Server

func (*GRPCServer) Start

func (s *GRPCServer) Start() error

func (*GRPCServer) Stop

func (s *GRPCServer) Stop()

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(cfg *config.ServerConfig, logger *zap.Logger, jwtValidator *middleware.JWTValidator, rateLimiter *middleware.RateLimiter) *HTTPServer

func (*HTTPServer) Router

func (s *HTTPServer) Router() *chi.Mux

func (*HTTPServer) Start

func (s *HTTPServer) Start() error

func (*HTTPServer) Stop

func (s *HTTPServer) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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