mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-05-17 06:56:32 +00:00
20 lines
366 B
Go
20 lines
366 B
Go
package grpc
|
|
|
|
import (
|
|
"context"
|
|
"go.uber.org/zap"
|
|
"os"
|
|
|
|
pb "github.com/stefanprodan/podinfo/pkg/api/grpc/env"
|
|
)
|
|
|
|
type EnvServer struct {
|
|
pb.UnimplementedEnvServiceServer
|
|
config *Config
|
|
logger *zap.Logger
|
|
}
|
|
|
|
func (s *EnvServer) Env(ctx context.Context, envInput *pb.EnvRequest) (*pb.EnvResponse, error) {
|
|
return &pb.EnvResponse{EnvVars: os.Environ()}, nil
|
|
}
|