gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/runtime/build/build.go (about) 1 // Package build builds a micro runtime package 2 package build 3 4 import ( 5 "gitee.com/liuxuezhan/go-micro-v1.18.0/runtime/source" 6 ) 7 8 // Builder builds binaries 9 type Builder interface { 10 // Build builds a package 11 Build(*Source) (*Package, error) 12 // Clean deletes the package 13 Clean(*Package) error 14 } 15 16 // Source is the source of a build 17 type Source struct { 18 // Language is the language of code 19 Language string 20 // Location of the source 21 Repository *source.Repository 22 } 23 24 // Package is micro service package 25 type Package struct { 26 // Name of the binary 27 Name string 28 // Location of the binary 29 Path string 30 // Type of binary 31 Type string 32 // Source of the binary 33 Source *Source 34 }