MCPcopy
hub / github.com/marmotedu/iam / complete

Method complete

internal/apiserver/server.go:117–123  ·  view source on GitHub ↗

Complete fills in any fields not set that are required to have valid data and can be derived from other fields.

()

Source from the content-addressed store, hash-verified

115
116// Complete fills in any fields not set that are required to have valid data and can be derived from other fields.
117func (c *ExtraConfig) complete() *completedExtraConfig {
118 if c.Addr == "" {
119 c.Addr = "127.0.0.1:8081"
120 }
121
122 return &completedExtraConfig{c}
123}
124
125// New create a grpcAPIServer instance.
126func (c *completedExtraConfig) New() (*grpcAPIServer, error) {

Callers 1

createAPIServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected