yumemi/gen/emit/entry
入口束 ── src/gen/face.gleam と src/gen/entry/http.gleam。
Service × Face の route は entry の prefix と Entity / Args の型から導く。
Types
pub type Output {
Output(files: List(types.File), notes: List(stop.Note))
}
Constructors
-
Output(files: List(types.File), notes: List(stop.Note))
入口 1 つ × Service 1 つの口。path は {name} の変数を持つ(registry の :name の手前の綴り)。
pub type Route {
Route(
face: String,
method: String,
path: String,
service: String,
path_keys: List(String),
credential: String,
)
}
Constructors
-
Route( face: String, method: String, path: String, service: String, path_keys: List(String), credential: String, )
Values
pub fn emit(app: model.App, hashes: hash.Hashes) -> Output