Skip to content

Add mixer interface in api manager.#25

Merged
chowchow316 merged 3 commits intoistio:masterfrom
chowchow316:build-envoy
Jan 3, 2017
Merged

Add mixer interface in api manager.#25
chowchow316 merged 3 commits intoistio:masterfrom
chowchow316:build-envoy

Conversation

@chowchow316
Copy link
Contributor

No description provided.

@chowchow316 chowchow316 self-assigned this Jan 3, 2017
@chowchow316 chowchow316 requested a review from qiwzhang January 3, 2017 21:04
// Basic information about the API call (operation).
struct OperationInfo {
// The service name
::google::protobuf::StringPiece service_name;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not change. We don't want to pass in for each request. We can store it in Mixer class, pass it into in Mixer::Create()

std::string request_body;
request.SerializeToString(&request_body);

grpc_request->set_service("istio.mixer.v1.Mixer")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call set_server("mixer_server").

virtual utils::Status Close();

virtual utils::Status GetStatistics(service_control::Statistics* stat) const;
const std::string& service_name() const { return service_name_; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this getter is not needed.

::istio::mixer::v1::CheckRequest request;
request.set_request_index(++request_index_);
CovertToPb(info, request.mutable_attribute_update());
CovertToPb(info, service_name(), request.mutable_attribute_update());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use service_name_ directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean treat service_name_ as public variable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no. service_name_ is a private. Mixer::Check() should be able to use it directly.

@chowchow316 chowchow316 merged commit bb3c4d4 into istio:master Jan 3, 2017
@chowchow316 chowchow316 deleted the build-envoy branch January 3, 2017 23:27
chowchow316 added a commit that referenced this pull request Jan 30, 2017
* Add mixer interface in api manager.

* Store service_name in mixer class.

* Remove getter function for service_name.
qiwzhang added a commit that referenced this pull request Feb 16, 2018
howardjohn pushed a commit that referenced this pull request Sep 7, 2022
dcillera pushed a commit to dcillera/proxy-1 that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants