MCPcopy
hub / github.com/nats-io/nats.go / clone

Method clone

nats.go:900–907  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898}
899
900func (s Server) clone() Server {
901 c := s
902 if s.URL != nil {
903 u := *s.URL
904 c.URL = &u
905 }
906 return c
907}
908
909// ServerInfo represents the information about the server that is sent in the INFO protocol message.
910type ServerInfo struct {

Callers 2

doReconnectMethod · 0.80
ServerPoolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected