github.com/vmware/transport-go@v1.3.4/service/fabric_service.go (about) 1 // Copyright 2019-2020 VMware, Inc. 2 // SPDX-License-Identifier: BSD-2-Clause 3 4 package service 5 6 import ( 7 "github.com/vmware/transport-go/model" 8 ) 9 10 // FabricService Interface containing all APIs which should be implemented by Fabric Services. 11 type FabricService interface { 12 // Handles a single Fabric Request 13 HandleServiceRequest(request *model.Request, core FabricServiceCore) 14 } 15 16 // FabricInitializableService Optional interface, if implemented by a fabric service, its Init method 17 // will be invoked when the service is registered in the ServiceRegistry. 18 type FabricInitializableService interface { 19 Init(core FabricServiceCore) error 20 }