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

Method init

ent/tx.go:179–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func (tx *Tx) init() {
180 tx.DavAccount = NewDavAccountClient(tx.config)
181 tx.DirectLink = NewDirectLinkClient(tx.config)
182 tx.Entity = NewEntityClient(tx.config)
183 tx.File = NewFileClient(tx.config)
184 tx.FsEvent = NewFsEventClient(tx.config)
185 tx.Group = NewGroupClient(tx.config)
186 tx.Metadata = NewMetadataClient(tx.config)
187 tx.Node = NewNodeClient(tx.config)
188 tx.OAuthClient = NewOAuthClientClient(tx.config)
189 tx.OAuthGrant = NewOAuthGrantClient(tx.config)
190 tx.Passkey = NewPasskeyClient(tx.config)
191 tx.Setting = NewSettingClient(tx.config)
192 tx.Share = NewShareClient(tx.config)
193 tx.StoragePolicy = NewStoragePolicyClient(tx.config)
194 tx.Task = NewTaskClient(tx.config)
195 tx.User = NewUserClient(tx.config)
196}
197
198// txDriver wraps the given dialect.Tx with a nop dialect.Driver implementation.
199// The idea is to support transactions without adding any extra code to the builders.

Callers 15

TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95
TxMethod · 0.95

Calls 15

NewEntityClientFunction · 0.85
NewMetadataClientFunction · 0.85
NewOAuthGrantClientFunction · 0.85
NewPasskeyClientFunction · 0.85
NewDavAccountClientFunction · 0.70
NewDirectLinkClientFunction · 0.70
NewFileClientFunction · 0.70
NewFsEventClientFunction · 0.70
NewGroupClientFunction · 0.70
NewNodeClientFunction · 0.70
NewOAuthClientClientFunction · 0.70
NewSettingClientFunction · 0.70

Tested by

no test coverage detected