MCPcopy Index your code
hub / github.com/daqing/airway

github.com/daqing/airway @v0.3.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.2 ↗ · + Follow
134 symbols 287 edges 46 files 6 documented · 4% updated 2mo ago★ 59
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

About

Airway is a full-stack API framework written in Go, inspired by Ruby on Rails.

查看中文文档

Get Started

1. Setup project skeleton

Use gonew to create a new project based on airway:

$ gonew github.com/daqing/airway example.com/foo/bar

Replace example.com/foo/bar with your real module name.

2. Configure local development environment

Create .env file

$ cp .env.example .env

This file defines a few environment variables:

AIRWAY_DSN

The URL string for connecting to PostgreSQL.

Example: postgres://daqing@localhost:5432/airway

AIRWAY_PORT

The port to listen on.

Example: 1900

TZ

The timezone of the server

Example: Asia/Shanghai

3. Start local development server

Run just from the project root directory to start the local development server.

Extension points exported contracts — how you extend this code

CondBuilder (Interface)
(no doc) [6 implementers]
lib/sql/cond.go
PolyModel (Interface)
(no doc)
app/models/base.go

Core symbols most depended-on inside this repo

ToSQL
called by 11
lib/sql/cond.go
NewDB
called by 5
lib/repo/pg/db.go
baseBuilder
called by 4
lib/sql/builder.go
GetEnv
called by 2
lib/utils/env.go
TrimFull
called by 2
lib/utils/trim.go
timeAgo
called by 2
lib/utils/timestamp.go
PagePkgName
called by 2
lib/utils/expand.go
RandomHex
called by 2
lib/utils/random_hex.go

Shape

Function 76
Method 30
Struct 17
TypeAlias 7
FuncType 2
Interface 2

Languages

Go100%

Modules by API surface

lib/sql/cond.go16 symbols
lib/sql/builder.go13 symbols
lib/validation/str.go8 symbols
lib/validation/int.go7 symbols
app/models/base.go7 symbols
app/websocket/hub.go6 symbols
main.go5 symbols
lib/sql/cond_test.go5 symbols
lib/repo/pg/db_test.go5 symbols
lib/utils/date.go4 symbols
lib/utils/trim.go3 symbols
lib/utils/expand_test.go3 symbols

Datastores touched

vp2Database · 1 repos

For agents

$ claude mcp add airway \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact