gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/runtime/source/source.go (about) 1 // Package source retrieves source code 2 package source 3 4 // Source retrieves source code 5 type Source interface { 6 // Fetch repo from a url 7 Fetch(url string) (*Repository, error) 8 // Commit and upload repo 9 Commit(*Repository) error 10 // The sourcerer 11 String() string 12 } 13 14 // Repository is the source repository 15 type Repository struct { 16 // Name or repo 17 Name string 18 // Local path where repo is stored 19 Path string 20 // URL from which repo was retrieved 21 URL string 22 }