adapter.go 340 B

123456789101112131415161718192021
  1. package service
  2. type Adapter struct {
  3. serviceType string
  4. serviceTag string
  5. }
  6. func NewAdapter(serviceType string, serviceTag string) Adapter {
  7. return Adapter{
  8. serviceType: serviceType,
  9. serviceTag: serviceTag,
  10. }
  11. }
  12. func (a *Adapter) Type() string {
  13. return a.serviceType
  14. }
  15. func (a *Adapter) Tag() string {
  16. return a.serviceTag
  17. }