entity.go 254 B

1234567891011121314151617
  1. package core
  2. import (
  3. "bytes"
  4. "context"
  5. )
  6. type (
  7. Document struct {
  8. Data bytes.Buffer
  9. }
  10. DocumentStore interface {
  11. FindID(ctx context.Context, id string) (*Document, error)
  12. Create(ctx context.Context, document *Document) (string, error)
  13. }
  14. )