MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetClient

Method SetClient

inventory/setting.go:42–44  ·  view source on GitHub ↗

SetClient sets the client for the setting client

(newClient *ent.Client)

Source from the content-addressed store, hash-verified

40
41// SetClient sets the client for the setting client
42func (c *settingClient) SetClient(newClient *ent.Client) TxOperator {
43 return &settingClient{client: newClient, kv: c.kv}
44}
45
46// GetClient gets the client for the setting client
47func (c *settingClient) GetClient() *ent.Client {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected