MCPcopy
hub / github.com/grpc/grpc-go / NewServerCreds

Function NewServerCreds

credentials/alts/alts.go:149–151  ·  view source on GitHub ↗

NewServerCreds constructs a server-side ALTS TransportCredentials object.

(opts *ServerOptions)

Source from the content-addressed store, hash-verified

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

Callers 9

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
TestInfoServerNameMethod · 0.70
TestCloneServerMethod · 0.70
TestInfoMethod · 0.70
startServerFunction · 0.70

Calls 1

newALTSFunction · 0.85

Tested by 5

TestInfoServerNameMethod · 0.56
TestCloneServerMethod · 0.56
TestInfoMethod · 0.56
startServerFunction · 0.56