Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ducdetronquito committed Jul 28, 2023
1 parent 3008755 commit b607f30
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea/
.DS_Store
go/
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/i

# Install Yaegi (go interpreter used by Traefik)
RUN curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $(go env GOPATH)/bin ${YAEGI_VERSION}

WORKDIR /home/traefik_correlation_id

COPY ./ ./

RUN \
go env -w GOPATH=/home/traefik_correlation_id/go && \
go mod tidy && \
go mod download && \
go mod vendor
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
This repository includes an example plugin, `demo`, for you to use as a reference for developing your own plugins.

[![Build Status](https://github.com/traefik/plugindemo/workflows/Main/badge.svg?branch=master)](https://github.com/traefik/plugindemo/actions)

The existing plugins can be browsed into the [Plugin Catalog](https://plugins.traefik.io).

# Developing a Traefik plugin

[Traefik](https://traefik.io) plugins are developed using the [Go language](https://golang.org).

A [Traefik](https://traefik.io) middleware plugin is just a [Go package](https://golang.org/ref/spec#Packages) that provides an `http.Handler` to perform specific processing of requests and responses.

Rather than being pre-compiled and linked, however, plugins are executed on the fly by [Yaegi](https://github.com/traefik/yaegi), an embedded Go interpreter.
# Correlation ID plugin for Traefik

## Usage

Expand Down

0 comments on commit b607f30

Please sign in to comment.