Skip to content

Conversation

@jacobbednarz
Copy link

@jacobbednarz jacobbednarz commented Oct 23, 2017

This is the start of a UI for Toxiproxy ripped heavily from the existing Shopify app but built into Toxiproxy core instead of an add-on.

Checklist

  • Have all Proxies + Toxics shown
  • Be able to update the Proxy or Toxic using the UI without touching the CLI
  • Pretty up the design

This is still verrrry WIP however I thought I would PR this early in case I either don't end up finishing it or anyone has any input during the journey.

Fixes #192

}

func (server *ApiServer) Dashboard(response http.ResponseWriter, request *http.Request) {
var dashboardData []proxyToxics
Copy link
Author

Choose a reason for hiding this comment

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

I made a decision early on to not use the existing HTTP API for these since we already have a couple of functions handy for fetching them.

Instead of trying to map this out myself, just reuse a combinaton of the
`server.Collection.Proxies()` with `proxyWithToxics` to iterate over the
available proxies and their toxics.
buffer: {{ .BufferSize }}
</td><td>
</td><td>
{{ if eq .Type "latency" }}
Copy link
Author

Choose a reason for hiding this comment

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

these if blocks will probably go away once the updating work comes into it.

@jacobbednarz
Copy link
Author

Closing this as #218 is further along

@jacobbednarz jacobbednarz deleted the dashboard branch September 25, 2019 04:52
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.

Dashboard

1 participant