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

入口 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
pub fn routes(app: model.App) -> List(Route)

全入口の口(service → face の順に並べる)。面の api.gleam と back の registry.mjs が同じ表を読む。

✨ Search Document