Slide 21
Slide 21 text
Protobuf メッセージに含まれるIDの変換
● Protobuf のメッセージとID変換の向きを渡すと
○ メッセージの中に含まれるすべてのIDを変換して値を置き換える。
● 「どのフィールドに値が含まれるか」は Custom Option を使って proto ファ
イルの中でアノテーションを行う。
func (c *ProtoMessageConverter) ConvertPPIDsToUserIDs(
ctx context.Context,
message proto.Message
) error
func (c *ProtoMessageConverter) ConvertUserIDsToPPIDs(
...