server

package
v0.0.0-...-c435387 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package server is a package that holds the http or grpc service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(addr string, opts ...GrpcOption) app.IServer

NewGRPCServer creates a new grpc server

Types

type GrpcOption

type GrpcOption func(*grpcOptions)

GrpcOption grpc settings

func WithGrpcReadTimeout

func WithGrpcReadTimeout(timeout time.Duration) GrpcOption

WithGrpcReadTimeout setting up read timeout

func WithGrpcRegistry

func WithGrpcRegistry(iRegistry registry.Registry, instance *registry.ServiceInstance) GrpcOption

WithGrpcRegistry registration services

func WithGrpcWriteTimeout

func WithGrpcWriteTimeout(timeout time.Duration) GrpcOption

WithGrpcWriteTimeout setting up writer timeout

Jump to

Keyboard shortcuts

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