Skip to content

Commit

Permalink
refactor: consistent module service methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo committed Aug 27, 2024
1 parent 57eb7fa commit 57a1b59
Show file tree
Hide file tree
Showing 133 changed files with 2,167 additions and 5,186 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions admin/proto/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 8bc2c51e08c447cd8886cdea48a73e14
digest: shake256:a969155953a5cedc5b2df5b42c368f2bc66ff8ce1804bc96e0f14ff2ee8a893687963058909df844d1643cdbc98ff099d2daa6bc9f9f5b8886c49afdc60e19af
commit: e7f8d366f5264595bcc4cd4139af9973
digest: shake256:e5e5f1c12f82e028ea696faa43b4f9dc6258a6d1226282962a8c8b282e10946281d815884f574bd279ebd9cd7588629beb3db17b892af6c33b56f92f8f67f509
- remote: buf.build
owner: protocolbuffers
repository: wellknowntypes
Expand Down
4 changes: 2 additions & 2 deletions agent/proto/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 8bc2c51e08c447cd8886cdea48a73e14
digest: shake256:a969155953a5cedc5b2df5b42c368f2bc66ff8ce1804bc96e0f14ff2ee8a893687963058909df844d1643cdbc98ff099d2daa6bc9f9f5b8886c49afdc60e19af
commit: e7f8d366f5264595bcc4cd4139af9973
digest: shake256:e5e5f1c12f82e028ea696faa43b4f9dc6258a6d1226282962a8c8b282e10946281d815884f574bd279ebd9cd7588629beb3db17b892af6c33b56f92f8f67f509
- remote: buf.build
owner: protocolbuffers
repository: wellknowntypes
Expand Down
6 changes: 4 additions & 2 deletions content/proto/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ message EventRemoveContent {
uint64 id = 1;
}

// EventUpdateContentCurator is an event emitted when content curator is updated.
// EventUpdateContentCurator is an event emitted when content curator is
// updated.
message EventUpdateContentCurator {

// id is the unique identifier of the content.
uint64 id = 1;
}

// EventUpdateContentMetadata is an event emitted when content metadata is updated.
// EventUpdateContentMetadata is an event emitted when content metadata is
// updated.
message EventUpdateContentMetadata {

// id is the unique identifier of the content.
Expand Down
12 changes: 8 additions & 4 deletions content/proto/v1/msg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ service Msg {
rpc RemoveContent(MsgRemoveContent) returns (MsgRemoveContentResponse);

// UpdateContentCurator updates the curator of content.
rpc UpdateContentCurator(MsgUpdateContentCurator) returns (MsgUpdateContentCuratorResponse);
rpc UpdateContentCurator(MsgUpdateContentCurator)
returns (MsgUpdateContentCuratorResponse);

// UpdateContentMetadata updates the metadata of content.
rpc UpdateContentMetadata(MsgUpdateContentMetadata) returns (MsgUpdateContentMetadataResponse);
rpc UpdateContentMetadata(MsgUpdateContentMetadata)
returns (MsgUpdateContentMetadataResponse);
}

// MsgCreateContent is the Msg/CreateContent request type.
Expand Down Expand Up @@ -72,7 +74,8 @@ message MsgUpdateContentCurator {
string new_curator = 3;
}

// MsgUpdateContentCuratorResponse is the Msg/UpdateContentCurator response type.
// MsgUpdateContentCuratorResponse is the Msg/UpdateContentCurator response
// type.
message MsgUpdateContentCuratorResponse {

// id is the unique identifier of the content.
Expand All @@ -93,7 +96,8 @@ message MsgUpdateContentMetadata {
string new_metadata = 3;
}

// MsgUpdateContentMetadataResponse is the Msg/UpdateContentMetadata response type.
// MsgUpdateContentMetadataResponse is the Msg/UpdateContentMetadata response
// type.
message MsgUpdateContentMetadataResponse {

// id is the unique identifier of the content.
Expand Down
973 changes: 251 additions & 722 deletions governor/api/v1/events.pulsar.go

Large diffs are not rendered by default.

2,204 changes: 630 additions & 1,574 deletions governor/api/v1/msg.pulsar.go

Large diffs are not rendered by default.

142 changes: 51 additions & 91 deletions governor/api/v1/msg_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions governor/api/v1/state.cosmos_orm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 57a1b59

Please sign in to comment.