mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 01:02:29 +00:00
remove transport draft, add grpc web and gateway support
This commit is contained in:
@ -33,6 +33,9 @@ func New(opts ...Option) (Client, error) {
|
||||
if c.opts.tlsConfig != nil {
|
||||
c.opts.dialOptions = append(c.opts.dialOptions, grpc.WithTransportCredentials(credentials.NewTLS(c.opts.tlsConfig)))
|
||||
}
|
||||
if !c.opts.secure {
|
||||
c.opts.dialOptions = append(c.opts.dialOptions, grpc.WithInsecure())
|
||||
}
|
||||
c.addr = fmt.Sprintf("%s:///%s", c.opts.registry.String(), c.opts.name)
|
||||
if c.opts.version != "" {
|
||||
c.addr = c.addr + ":" + strings.TrimSpace(c.opts.version)
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Taken from the https://github.com/micro/go-micro/client/grpc
|
||||
*/
|
||||
*/
|
||||
|
||||
package client
|
||||
|
||||
|
Reference in New Issue
Block a user