|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
|
<p align="center"> |
|
|
|
|
<a href="https://github.com/go-kratos/kratos/actions"><img src="https://github.com/go-kratos/kratos/workflows/Go/badge.svg" alt="Build Status"></a> |
|
|
|
|
<a href="https://pkg.go.dev/github.com/go-kratos/kratos/v2"><img src="https://pkg.go.dev/badge/github.com/go-kratos/kratos/v2" alt="GoDoc"></a> |
|
|
|
|
<a href="https://pkg.go.dev/gitea.drugeyes.vip/pharnexbase/kratos/v2"><img src="https://pkg.go.dev/badge/gitea.drugeyes.vip/pharnexbase/kratos/v2" alt="GoDoc"></a> |
|
|
|
|
<a href="https://codecov.io/gh/go-kratos/kratos"><img src="https://codecov.io/gh/go-kratos/kratos/master/graph/badge.svg" alt="codeCov"></a> |
|
|
|
|
<a href="https://goreportcard.com/report/github.com/go-kratos/kratos"><img src="https://goreportcard.com/badge/github.com/go-kratos/kratos" alt="Go Report Card"></a> |
|
|
|
|
<a href="https://github.com/go-kratos/kratos/blob/main/LICENSE"><img src="https://img.shields.io/github/license/go-kratos/kratos" alt="License"></a> |
|
|
|
@ -95,9 +95,9 @@ kratos run |
|
|
|
|
|
|
|
|
|
### Kratos Boot |
|
|
|
|
``` |
|
|
|
|
import "github.com/go-kratos/kratos/v2" |
|
|
|
|
import "github.com/go-kratos/kratos/v2/transport/grpc" |
|
|
|
|
import "github.com/go-kratos/kratos/v2/transport/http" |
|
|
|
|
import "gitea.drugeyes.vip/pharnexbase/kratos/v2" |
|
|
|
|
import "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/grpc" |
|
|
|
|
import "gitea.drugeyes.vip/pharnexbase/kratos/v2/transport/http" |
|
|
|
|
|
|
|
|
|
httpSrv := http.NewServer(http.Address(":8000")) |
|
|
|
|
grpcSrv := grpc.NewServer(grpc.Address(":9000")) |
|
|
|
|