owner.go 340 B

1234567891011121314151617181920
  1. package rest
  2. import (
  3. "context"
  4. "git.ali33.ru/fcg-xvii/go-tools/json"
  5. )
  6. type IOwner interface {
  7. IsStream() bool
  8. }
  9. type IStream interface {
  10. SetAuth(json.Map)
  11. Auth() json.Map
  12. SetClientData(key string, val any)
  13. ClientData(key string) (any, bool)
  14. Context() context.Context
  15. SendMessage(IRequestOut) (<-chan *RequestStream, error)
  16. }