aboutsummaryrefslogtreecommitdiffstats
path: root/cms-postd/src/runner.rs
blob: e1eaca37e4740b6a555ce1d77b020603c557327e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// -*- coding: utf-8 -*-
//
// Simple CMS
//
// Copyright (C) 2011-2024 Michael Büsch <m@bues.ch>
//
// Licensed under the Apache License version 2.0
// or the MIT license, at your option.
// SPDX-License-Identifier: Apache-2.0 OR MIT

pub mod python;

use crate::{reply::Reply, request::Request};
use anyhow as ah;

pub trait Runner {
    async fn run(&mut self, request: Request) -> ah::Result<Reply>;
}

// vim: ts=4 sw=4 expandtab
bues.ch cgit interface