Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data EndpointMethod
- newtype EndpointName = EndpointName {}
- data EndpointUrl
- mkEndpointUrl :: ToTxt a => a -> Maybe EndpointUrl
- data QueryReference = QueryReference {}
- qrQueryName :: Lens' QueryReference QueryName
- qrCollectionName :: Lens' QueryReference CollectionName
- data EndpointDef query = EndpointDef {
- _edQuery :: query
- edQuery :: forall query query. Iso (EndpointDef query) (EndpointDef query) query query
- type EndpointTrie query = MultiMapPathTrie Text EndpointMethod (EndpointMetadata query)
- buildEndpointsTrie :: Ord query => [EndpointMetadata query] -> EndpointTrie query
- splitPath :: (Text -> a) -> (Text -> a) -> EndpointUrl -> [a]
- type CreateEndpoint = EndpointMetadata QueryReference
- data EndpointMetadata query = EndpointMetadata {
- _ceName :: EndpointName
- _ceUrl :: EndpointUrl
- _ceMethods :: NonEmpty EndpointMethod
- _ceDefinition :: EndpointDef query
- _ceComment :: Maybe Text
- ceUrl :: forall query. Lens' (EndpointMetadata query) EndpointUrl
- ceName :: forall query. Lens' (EndpointMetadata query) EndpointName
- ceMethods :: forall query. Lens' (EndpointMetadata query) (NonEmpty EndpointMethod)
- ceDefinition :: forall query query. Lens (EndpointMetadata query) (EndpointMetadata query) (EndpointDef query) (EndpointDef query)
- ceComment :: forall query. Lens' (EndpointMetadata query) (Maybe Text)
- data DropEndpoint = DropEndpoint {}
- deName :: Iso' DropEndpoint EndpointName
Documentation
data EndpointMethod Source #
Instances
newtype EndpointName Source #
Instances
data EndpointUrl Source #
Instances
mkEndpointUrl :: ToTxt a => a -> Maybe EndpointUrl Source #
data QueryReference Source #
Instances
data EndpointDef query Source #
EndpointDef | |
|
Instances
edQuery :: forall query query. Iso (EndpointDef query) (EndpointDef query) query query Source #
type EndpointTrie query = MultiMapPathTrie Text EndpointMethod (EndpointMetadata query) Source #
buildEndpointsTrie :: Ord query => [EndpointMetadata query] -> EndpointTrie query Source #
splitPath :: (Text -> a) -> (Text -> a) -> EndpointUrl -> [a] Source #
Split a path and construct PathSegments based on callbacks for variables and literals Var callback is passed the ":" prefix as part of the text.
data EndpointMetadata query Source #
EndpointMetadata | |
|
Instances
ceUrl :: forall query. Lens' (EndpointMetadata query) EndpointUrl Source #
ceName :: forall query. Lens' (EndpointMetadata query) EndpointName Source #
ceMethods :: forall query. Lens' (EndpointMetadata query) (NonEmpty EndpointMethod) Source #
ceDefinition :: forall query query. Lens (EndpointMetadata query) (EndpointMetadata query) (EndpointDef query) (EndpointDef query) Source #
data DropEndpoint Source #