recs-seem-mono-container

module
v0.0.0-...-11149d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: MIT

README

recs-seem-mono-container

Getting started

It runs on Linux environment.

git clone https://github.com/micro-service-lab/recs-seem-mono-container.git
cd recs-seem-mono-container
aqua policy allow "${PWD}/aqua-policy.yaml"
aqua i -l

mageコマンド

  • コンテナ操作

    • up
    mage app:up
    
    • down
    mage app:down
    
    • ps
    mage app:ps
    
    • log
    mage app:log {{サービス名}}
    
    • clean
    mage app:clean
    
    • bash
    mage app:bash {{サービス名}}
    
    • migrate
    mage app:migrate
    
    • rollback
    mage app:rollback
    
    • seed
    mage app:seed
    
    • dev
    mage app:dev
    
    • kill
    mage app:kill
    
    • serve
    mage app:serve
    
  • マイグレーションファイル生成

    mage generate:migration {{ファイル名}}
    
    • 使用例
    mage generate:migration create_m_mime_types_table
    

Directories

Path Synopsis
app
Package app provides the application container.
Package app provides the application container.
batch
Package batch contains the batch processing logic for the application.
Package batch contains the batch processing logic for the application.
entity
Package entity エンティティ関連の構造体を定義するパッケージ。
Package entity エンティティ関連の構造体を定義するパッケージ。
parameter
Package parameter layer common parameters for the application.
Package parameter layer common parameters for the application.
service
Package service provides a application service.
Package service provides a application service.
store
Package store 永続化関連のアダプタを提供するパッケージ
Package store 永続化関連のアダプタを提供するパッケージ
store/pgadapter
Package pgadapter provides a Postgres adapter for the store package.
Package pgadapter provides a Postgres adapter for the store package.
cmd
cli
cli/cmd
Package cmd contains the command line interface for the application.
Package cmd contains the command line interface for the application.
http
Package main This application is a monolith recs-seem service.
Package main This application is a monolith recs-seem service.
http/api
Package api provides a server application.
Package api provides a server application.
http/cors
Package cors is go-chi middleware custom package.
Package cors is go-chi middleware custom package.
http/handler
Package handler provides a server application.
Package handler provides a server application.
http/handler/errhandle
Package errhandle provides error handling for the application.
Package errhandle provides error handling for the application.
http/handler/queryparam
Package queryparam provides a query parameter parser.
Package queryparam provides a query parameter parser.
http/handler/response
Package response provides a application response.
Package response provides a application response.
http/recoverer
Package recoverer provides a middleware that recovers from panics, logs the panic (and a backtrace), and returns a Custom status if possible.(based on go-chi/chi)
Package recoverer provides a middleware that recovers from panics, logs the panic (and a backtrace), and returns a Custom status if possible.(based on go-chi/chi)
internal
agerror
Package agerror provides aggregated error handling.
Package agerror provides aggregated error handling.
auth
Package auth provides authentication related functions.
Package auth provides authentication related functions.
clock
Package clock 時刻の固定を行えるようにするためのパッケージ。
Package clock 時刻の固定を行えるようにするためのパッケージ。
clock/fakeclock
Package fakeclock 擬似的な時刻を返す clock.Clock 実装。
Package fakeclock 擬似的な時刻を返す clock.Clock 実装。
config
Package config is defined application settings.
Package config is defined application settings.
database
Package database connection open function.
Package database connection open function.
faketime
Package faketime は時刻偽装モードの API を提供する。
Package faketime は時刻偽装モードの API を提供する。
session
Package session user session information.
Package session user session information.
testutils
Package testutils provides utilities for testing.
Package testutils provides utilities for testing.
testutils/factory
Package factory provides a way to create test data for the tests.
Package factory provides a way to create test data for the tests.
testutils/testauth
Package testauth provides a mock implementation of auth.Auth for testing.
Package testauth provides a mock implementation of auth.Auth for testing.
Package main This is a task definition package for magefile, a task builder.
Package main This is a task definition package for magefile, a task builder.
utils
Package utils This package defines utility functions for use in magefile.
Package utils This package defines utility functions for use in magefile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL