server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package server ...

  • @Author: windealli windealli@tencent.com
  • @Date: 2023-03-15 16:01:35
  • @LastEditors: windealli windealli@tencent.com
  • @LastEditTime: 2023-03-16 19:43:51
  • @FilePath: /kratos-layout/internal/server/grpc.go
  • @Description:

Package server ...

  • @Author: windealli windealli@tencent.com
  • @Date: 2023-03-15 16:01:35
  • @LastEditors: windealli windealli@tencent.com
  • @LastEditTime: 2023-03-16 19:43:04
  • @FilePath: /kratos-layout/internal/server/http.go
  • @Description:

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer)

ProviderSet is server providers.

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Server, greeter *service.GreeterService, logger log.Logger) *http.Server

NewHTTPServer new an HTTP server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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