Documentation ¶
Overview ¶
Package grpcconf helps configure gRPC service connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Host string `json:"host"` Port string `json:"port"` // Insecure is required by gRPC to say when there are no TLS connection // details. Insecure bool `json:"insecure"` // PublicURL defines the base url to use when forwarding the user to // public side of the service. Not all services required this. PublicURL string `json:"public_url"` }
Service defines a generic base for dealing with connection details to an internal gRPC service.
func (*Service) Connection ¶
func (s *Service) Connection(opts ...grpc.DialOption) (*grpc.ClientConn, error)
Connection provides an instance of the grpc connection.
func (*Service) DialOptions ¶
func (s *Service) DialOptions() []grpc.DialOption
DialOptions provides an array of gRPC DialOptions based on the defined service configuration.
Click to show internal directories.
Click to hide internal directories.