{"size": 1152, "ext": "scrbl", "max_stars_repo_path": "scribblings/processor.scrbl", "max_stars_repo_name": "johnstonskj/racket-thrift", "max_stars_repo_stars_event_min_datetime": "2018-12-31T01:14:13.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-25T07:09:56.000Z", "max_issues_repo_path": "scribblings/processor.scrbl", "max_issues_repo_name": "DavidAlphaFox/racket-thrift", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "scribblings/processor.scrbl", "max_forks_repo_name": "DavidAlphaFox/racket-thrift", "max_forks_repo_forks_event_min_datetime": "2021-01-05T15:21:19.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-05T15:21:19.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.0434782609, "max_line_length": 80, "alphanum_fraction": 0.4670138889}
#lang scribble/manual

@(require racket/sandbox
          scribble/core
          scribble/eval
          racket/contract
          thrift
          (for-label racket/base
                     racket/contract
                     thrift))

@;{============================================================================}

@(define example-eval (make-base-eval
                      '(require racket/string
                                racket/contract
                                thrift)))

@;{============================================================================}

@title[]{Thrift Processor Support}

Support for Thrift processor contracts.

@examples[ #:eval example-eval
(require thrift)

(define/contract (my-processor in out)
  transport-processor/c
  #f)
]

@;{============================================================================}
@section[]{Processor Types}
@defmodule[thrift/processor/common]

@defthing[transport-processor/c
          flat-contract?]{
TBD @racket[(-> input-transport? output-transport? boolean?)]
}

@defthing[protocol-processor/c
          flat-contract?]{
TBD @racket[(-> decoder? encoder? boolean?)]
}
