├── .github └── workflows │ ├── action.yaml │ └── manual.yaml ├── .gitignore ├── LICENSE ├── README.md ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle.kts └── src ├── main ├── kotlin │ └── com │ │ └── github │ │ └── fastmirrorserver │ │ ├── Application.kt │ │ ├── annotation │ │ ├── Authority.kt │ │ └── RawResponse.kt │ │ ├── component │ │ ├── Cache.kt │ │ └── MemoryCache.kt │ │ ├── config │ │ ├── DataSourceInitializer.kt │ │ ├── InterceptorConfiguration.kt │ │ └── KtOrmConfiguration.kt │ │ ├── controller │ │ ├── AccountController.kt │ │ ├── ApiExceptionHandler.kt │ │ ├── ApiResponseHandler.kt │ │ ├── HttpErrorController.kt │ │ ├── QueryController.kt │ │ ├── TestController.kt │ │ ├── TracebackController.kt │ │ └── UploadTaskController.kt │ │ ├── dto │ │ ├── ApiResponse.kt │ │ ├── Metadata.kt │ │ ├── Summary.kt │ │ └── Traceback.kt │ │ ├── entity │ │ ├── Account.kt │ │ ├── Manifest.kt │ │ └── Project.kt │ │ ├── exception │ │ └── ApiException.kt │ │ ├── interceptor │ │ ├── AuthorizationInterceptor.kt │ │ └── ResponseResultInterceptor.kt │ │ ├── pojo │ │ ├── AccountPOJO.kt │ │ └── ManifestPOJO.kt │ │ ├── service │ │ ├── AuthorizationService.kt │ │ ├── ErrorReportService.kt │ │ ├── FileService.kt │ │ └── UploadTaskService.kt │ │ └── util │ │ ├── Crypto.kt │ │ ├── Database.kt │ │ ├── FileWriter.kt │ │ ├── Json.kt │ │ ├── Network.kt │ │ ├── Time.kt │ │ ├── UploadTaskContainer.kt │ │ ├── Utility.kt │ │ └── enums │ │ └── Permission.kt └── resources │ ├── application.yml │ └── table.sql └── test ├── kotlin └── com │ └── github │ └── fastmirrorserver │ └── test │ ├── AccountTest.kt │ └── UtilityTest.kt └── resources ├── application.yml └── table.sql /.github/workflows/action.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/.github/workflows/action.yaml -------------------------------------------------------------------------------- /.github/workflows/manual.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/.github/workflows/manual.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/README.md -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | kotlin.code.style=official 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/gradlew.bat -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | 2 | rootProject.name = "FastmirrorServer" 3 | 4 | -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/Application.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/Application.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/annotation/Authority.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/annotation/Authority.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/annotation/RawResponse.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/annotation/RawResponse.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/component/Cache.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/component/Cache.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/component/MemoryCache.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/component/MemoryCache.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/config/DataSourceInitializer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/config/DataSourceInitializer.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/config/InterceptorConfiguration.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/config/InterceptorConfiguration.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/config/KtOrmConfiguration.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/config/KtOrmConfiguration.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/AccountController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/AccountController.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/ApiExceptionHandler.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/ApiExceptionHandler.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/ApiResponseHandler.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/ApiResponseHandler.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/HttpErrorController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/HttpErrorController.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/QueryController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/QueryController.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/TestController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/TestController.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/TracebackController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/TracebackController.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/controller/UploadTaskController.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/controller/UploadTaskController.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/dto/ApiResponse.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/dto/ApiResponse.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/dto/Metadata.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/dto/Metadata.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/dto/Summary.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/dto/Summary.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/dto/Traceback.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/dto/Traceback.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/entity/Account.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/entity/Account.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/entity/Manifest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/entity/Manifest.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/entity/Project.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/entity/Project.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/exception/ApiException.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/exception/ApiException.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/interceptor/AuthorizationInterceptor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/interceptor/AuthorizationInterceptor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/interceptor/ResponseResultInterceptor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/interceptor/ResponseResultInterceptor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/pojo/AccountPOJO.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/pojo/AccountPOJO.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/pojo/ManifestPOJO.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/pojo/ManifestPOJO.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/service/AuthorizationService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/service/AuthorizationService.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/service/ErrorReportService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/service/ErrorReportService.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/service/FileService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/service/FileService.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/service/UploadTaskService.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/service/UploadTaskService.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/Crypto.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/Crypto.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/Database.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/Database.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/FileWriter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/FileWriter.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/Json.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/Json.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/Network.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/Network.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/Time.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/Time.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/UploadTaskContainer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/UploadTaskContainer.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/Utility.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/Utility.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/github/fastmirrorserver/util/enums/Permission.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/kotlin/com/github/fastmirrorserver/util/enums/Permission.kt -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/main/resources/table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/main/resources/table.sql -------------------------------------------------------------------------------- /src/test/kotlin/com/github/fastmirrorserver/test/AccountTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/test/kotlin/com/github/fastmirrorserver/test/AccountTest.kt -------------------------------------------------------------------------------- /src/test/kotlin/com/github/fastmirrorserver/test/UtilityTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/test/kotlin/com/github/fastmirrorserver/test/UtilityTest.kt -------------------------------------------------------------------------------- /src/test/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/test/resources/application.yml -------------------------------------------------------------------------------- /src/test/resources/table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FastMirror-MC/FastMirrorServer/HEAD/src/test/resources/table.sql --------------------------------------------------------------------------------