Open
Conversation
Yesterday17
reviewed
Apr 14, 2023
src/08.annim/01.protocol.md
Outdated
|
|
||
| #### 返回 | ||
|
|
||
| 返回包含所有 `Tag` 的数组,类型为 `TagInfo[]` 。 |
| "last_update": 1639631487 | ||
| "last_update": 1639631487, | ||
| // 用于提供元数据的 `Annim` 服务器 URL | ||
| "meta_server": "https://annim.example.com" |
Member
There was a problem hiding this comment.
Member
Author
There was a problem hiding this comment.
annim 应该是 required ,而 repo 和预构建 db 都应该用 annim 提供(?
Member
There was a problem hiding this comment.
No, Annim 是 repo 的延伸,这样 repo 和 Annim 就是一对多的。Annim 和 db 一个是动态的数据源,一个是静态的数据源,也应该是平级的。
Member
Author
There was a problem hiding this comment.
annim 某种意义上来说是对 repo 的封装,为什么是平级的。而且要让客户端处理 git 也很麻烦
Member
There was a problem hiding this comment.
需要解决的其实是:
- 不管最终 repo 以什么形态出现,我们肯定会保留一种备份并公开元数据仓库的手段。
- 从这份公开的元数据备份中 Host 一个 Annim 并添加到客户端之后,我们需要让支持的所有 Annil 都自动选用这个 Annim,而不是每个用了这个 repo 的服务器都要单独配置一遍。
Member
Author
There was a problem hiding this comment.
那问题就是现在元数据的来源是抽象的,没有一个可用的 identifier 。
Member
There was a problem hiding this comment.
那我们给 repo 加一个 uuid?然后给版本加一个 hash
Contributor
There was a problem hiding this comment.
那我们给 repo 加一个 uuid?然后给版本加一个 hash
参考 nix flake 的 input?
Yesterday17
reviewed
Apr 18, 2023
Yesterday17
reviewed
Apr 18, 2023
Yesterday17
reviewed
Apr 25, 2023
Yesterday17
reviewed
Jan 1, 2024
Co-authored-by: Yesterday17 <mmf@mmf.moe>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.