mirror of
https://github.com/goravel/goravel.git
synced 2025-09-26 20:51:19 +08:00
27 lines
656 B
Go
27 lines
656 B
Go
package config
|
|
|
|
import (
|
|
"github.com/goravel/framework/facades"
|
|
)
|
|
|
|
func init() {
|
|
config := facades.Config
|
|
config.Add("grpc", map[string]any{
|
|
// Configure your server host
|
|
"host": config.Env("GRPC_HOST", ""),
|
|
|
|
// Configure your server port
|
|
"port": config.Env("GRPC_PORT", ""),
|
|
|
|
// Configure your client host and interceptors.
|
|
// Interceptors can be the group name of UnaryClientInterceptorGroups in app/grpc/kernel.go.
|
|
"clients": map[string]any{
|
|
//"user": map[string]any{
|
|
// "host": config.Env("GRPC_USER_HOST", ""),
|
|
// "port": config.Env("GRPC_USER_PORT", ""),
|
|
// "interceptors": []string{},
|
|
//},
|
|
},
|
|
})
|
|
}
|