Versions in this module Expand all Collapse all v1 v1.11.11 Aug 6, 2024 Changes in this version + var DefaultDialOptions = []grpc.DialOption + var DefaultServerOptions = []grpc.ServerOption + func Dial(addr string, opts ...DialOption) (*grpc.ClientConn, error) + func EnsureValidResponseCode(code int) int + func GetGRPCErrorFromHTTPResponse(resp *httppb.HandleSimpleHTTPResponse) error + func GetHTTPHeader(hs http.Header) []*httppb.Element + func GetHTTPResponseFromError(err error) (*httppb.HandleSimpleHTTPResponse, bool) + func MergeHTTPHeader(hs []*httppb.Element, header http.Header) + func NewListener() (net.Listener, error) + func NewServer(opts ...ServerOption) *grpc.Server + func Serve(listener net.Listener, grpcServer *grpc.Server) + func TimestampAsTime(ts *tspb.Timestamp) (time.Time, error) + func TimestampFromTime(time time.Time) *tspb.Timestamp + type DialOption func(*DialOptions) + func WithChainStreamInterceptor(interceptors ...grpc.StreamClientInterceptor) DialOption + func WithChainUnaryInterceptor(interceptors ...grpc.UnaryClientInterceptor) DialOption + type DialOptions struct + type ServerCloser struct + func (s *ServerCloser) Add(server *grpc.Server) + func (s *ServerCloser) GracefulStop() + func (s *ServerCloser) Stop() + type ServerOption func(*ServerOptions) + func WithStreamInterceptor(streamInterceptor grpc.StreamServerInterceptor) ServerOption + func WithUnaryInterceptor(unaryInterceptor grpc.UnaryServerInterceptor) ServerOption + type ServerOptions struct