MCPcopy
hub / github.com/fatedier/frp / Clone

Method Clone

pkg/config/v1/proxy_plugin.go:131–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func (o *HTTPS2HTTPPluginOptions) Clone() ClientPluginOptions {
132 if o == nil {
133 return nil
134 }
135 out := *o
136 out.RequestHeaders = o.RequestHeaders.Clone()
137 out.EnableHTTP2 = util.ClonePtr(o.EnableHTTP2)
138 return &out
139}
140
141type HTTPS2HTTPSPluginOptions struct {
142 Type string `json:"type,omitempty"`

Callers

nothing calls this directly

Calls 2

ClonePtrFunction · 0.92
CloneMethod · 0.65

Tested by

no test coverage detected