MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetThumb

Function GetThumb

internal/model/obj.go:152–163  ·  view source on GitHub ↗
(obj Obj)

Source from the content-addressed store, hash-verified

150}
151
152func GetThumb(obj Obj) (thumb string, ok bool) {
153 for {
154 switch o := obj.(type) {
155 case Thumb:
156 return o.Thumb(), true
157 case ObjUnwrap:
158 obj = o.Unwrap()
159 default:
160 return
161 }
162 }
163}
164
165func GetUrl(obj Obj) (url string, ok bool) {
166 for {

Callers 9

ListMethod · 0.92
convert2strmObjsMethod · 0.92
ListMethod · 0.92
callFSGetMethod · 0.92
toObjRespFunction · 0.92
SharingGetFunction · 0.92
SharingListFunction · 0.92
toObjsRespFunction · 0.92
FsGetFunction · 0.92

Calls 2

ThumbMethod · 0.65
UnwrapMethod · 0.65

Tested by

no test coverage detected