NewServerCreds constructs a server-side ALTS TransportCredentials object.
(opts *ServerOptions)
| 147 | |
| 148 | // NewServerCreds constructs a server-side ALTS TransportCredentials object. |
| 149 | func NewServerCreds(opts *ServerOptions) credentials.TransportCredentials { |
| 150 | return newALTS(core.ServerSide, nil, opts.HandshakerServiceAddress) |
| 151 | } |
| 152 | |
| 153 | func newALTS(side core.Side, accounts []string, hsAddress string) credentials.TransportCredentials { |
| 154 | once.Do(func() { |