WithBasicAuth configures basic authentication credentials for the connection.
(username, password string)
| 12 | |
| 13 | // WithBasicAuth configures basic authentication credentials for the connection. |
| 14 | func WithBasicAuth(username, password string) grpc.DialOption { |
| 15 | return grpc.WithPerRPCCredentials(basicAuthCredentials{username: username, password: password}) |
| 16 | } |
| 17 | |
| 18 | type basicAuthCredentials struct { |
| 19 | username, password string |
no outgoing calls
no test coverage detected
searching dependent graphs…