MCPcopy
hub / github.com/cloudreve/cloudreve / SetType

Method SetType

ent/mutation.go:3188–3191  ·  view source on GitHub ↗

SetType sets the "type" field.

(i int)

Source from the content-addressed store, hash-verified

3186
3187// SetType sets the "type" field.
3188func (m *FileMutation) SetType(i int) {
3189 m._type = &i
3190 m.add_type = nil
3191}
3192
3193// GetType returns the value of the "type" field in the mutation.
3194func (m *FileMutation) GetType() (r int, exists bool) {

Callers 15

SetFieldMethod · 0.95
migrateFoldersMethod · 0.45
migrateFileMethod · 0.45
insertEntityMethod · 0.45
migrateNodeMethod · 0.45
migratePolicyMethod · 0.45
CopyMethod · 0.45
CreateFileMethod · 0.45
CreateEntityMethod · 0.45
CreateFolderMethod · 0.45
UpsertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected