media

module
v1.99.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT

README

media

Proto files

Add a proto template
kratos proto add api/server/server.proto
Generate the proto code
kratos proto client api/server/server.proto
Generate the source code of service by proto file
kratos proto server api/server/server.proto -t internal/service

go generate ./...

Generate other auxiliary files by Makefile

Download and update dependencies
make init
Generate API files (include: pb.go, http, grpc, validate, swagger) by proto file
make api
Generate all files
make all
Generate migrations

Install Atlas

make migrations

Configuration

Consul
app/media/AWS_REGION
app/media/AWS_BUCKET
.env
AWS_ACCESS_KEY_ID={aws-key}
AWS_SECRET_ACCESS_KEY={aws-secret}

Run

Run locally
make run
Run in Docker
make start
Stop docker
make stop

Directories

Path Synopsis
api
cmd
app command
ent
internal
biz
data/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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