aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Indexed.mli
blob: 5c8d97d7989b8962eb03f331a724bf6bdffe4500 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
type t

class type implementation = object
  method indexes : string list
  method lookup : string -> Concepts.Value.value -> (Handle.t, Concepts.Condition.condition) result
end

val make : #implementation -> Handle.protocol
val from : Handle.t -> t Handle.interface option
val require : Handle.t -> (t Handle.interface, Concepts.Condition.condition) result
val indexes : t Handle.interface -> string list

val lookup :
  t Handle.interface ->
  string ->
  Concepts.Value.value ->
  (Handle.t, Concepts.Condition.condition) result