Documentation
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
metadata
this file is copied from https://github.com/go-kratos/kratos/blob/main/api/metadata/server.go
|
this file is copied from https://github.com/go-kratos/kratos/blob/main/api/metadata/server.go |
|
core
|
|
|
resolver/discovery
In this file we define discorveryResolver struct and its methods, to replace the grpc resolver.Resolver interface by your own.
|
In this file we define discorveryResolver struct and its methods, to replace the grpc resolver.Resolver interface by your own. |
|
trace/exporter/jaeger
this is a modified version of jaeger exporter in https://github.com/zeromicro/go-zero/blob/master/core/trace/agent.go
|
this is a modified version of jaeger exporter in https://github.com/zeromicro/go-zero/blob/master/core/trace/agent.go |
|
example
|
|
|
GroupStart
command
|
|
|
features/metrics/rest
command
|
|
|
features/metrics/rpc
command
|
|
|
features/metrics/rpc/server
command
|
|
|
features/trace
command
|
|
|
features/trace/httpServer
command
|
|
|
features/trace/rpc/server
command
|
|
|
rest
command
|
|
|
rpc
command
|
|
|
pkg
|
|
|
errors
Package errors provides simple error handling primitives.
|
Package errors provides simple error handling primitives. |
|
errors/codgen
command
|
|
|
rest/internal/RBAC/Casbin
a RBAC auth check by casbin
|
a RBAC auth check by casbin |
|
rest/internal/auth
Basic Auth middleware
|
Basic Auth middleware |
|
rest/internal/pprof
this is a copy of "https://github.com/gin-contrib/pprof/blob/master/pprof.go
|
this is a copy of "https://github.com/gin-contrib/pprof/blob/master/pprof.go |
|
rpc/internal/auth
this file is modified from https://github.com/zeromicro/go-zero/blob/master/zrpc/internal/auth/auth.go
|
this file is modified from https://github.com/zeromicro/go-zero/blob/master/zrpc/internal/auth/auth.go |
|
rpc/internal/serverinterceptors
auth check by jwt
|
auth check by jwt |
Click to show internal directories.
Click to hide internal directories.