grpc v0.5.0-beta GRPC.Credential View Source
Stores credentials for authentication. It can be used to establish secure connections
by passed to GRPC.Stub.connect/2
as an argument.
Examples
iex> cred = GRPC.Credential.new(ssl: [cacertfile: ca_path])
iex> GRPC.Stub.connect("localhost:10000", cred: cred)
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GRPC.Credential{ssl: [:ssl.ssl_option()]}
t() :: %GRPC.Credential{ssl: [:ssl.ssl_option()]}
Link to this section Functions
Link to this function
new(opts) View Source
Creates credential.