github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/object/service-init.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package object 4 5 import ( 6 "../protocol" 7 ) 8 9 const ( 10 DomainName = "object.protocol" 11 ) 12 13 // registerServices use to initialize services and register them in the application. 14 func registerServices() { 15 protocol.App.RegisterService(&DeleteService) 16 protocol.App.RegisterService(&GetMetadataService) 17 protocol.App.RegisterService(&GetService) 18 protocol.App.RegisterService(&ReadService) 19 protocol.App.RegisterService(&SaveService) 20 protocol.App.RegisterService(&WipeService) 21 protocol.App.RegisterService(&WriteService) 22 } 23 24 // RequestType indicate request type! 25 type RequestType uint8 26 27 // Services request types 28 const ( 29 RequestTypeStandalone RequestType = iota 30 RequestTypeBroadcast 31 )