adapter.go 340 B

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