You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-guide/circuit-breaker/page.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,4 +43,4 @@ func main() {
43
43
Circuit breaker state changes to open when number of consecutive failed requests increases the threshold.
44
44
When it is in open state, GoFr makes request to the aliveness endpoint (default being - /.well-known/alive) at an equal interval of time provided in config.
45
45
46
-
To override the default aliveness endpoint [refer](/docs/advanced-guide/monitoring-service-health)
46
+
To override the default aliveness endpoint {% new-tab-link title="refer" href="/docs/advanced-guide/monitoring-service-health" /%}.
Copy file name to clipboardExpand all lines: docs/advanced-guide/grpc/page.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
We have already seen how GoFr can help ease the development of HTTP servers, but there are
3
3
cases where performance is primiraliy required sacrificing flexibility. In these types of
4
4
scenarios gRPC protocol comes into picture. gRPC is an open-source RPC(Remote Procedure Call)
5
-
framework initially developed by Google. [Learn more](https://grpc.io/docs/what-is-grpc/introduction/)
5
+
framework initially developed by Google. {% new-tab-link title="Learn more" href="https://grpc.io/docs/what-is-grpc/introduction/" /%}
6
6
7
7
## Prerequisites
8
8
- Install the `protoc` protocol buffer compilation
@@ -28,7 +28,7 @@ framework initially developed by Google. [Learn more](https://grpc.io/docs/what-
28
28
```
29
29
30
30
## Creating protocol buffers
31
-
For a detailed guide, please take a look at the [Tutorial](https://grpc.io/docs/languages/go/basics/) at official gRPC docs.
31
+
For a detailed guide, please take a look at the {% new-tab-link title="Tutorial" href="https://grpc.io/docs/languages/go/basics/" /%} at official gRPC docs.
32
32
33
33
Fistly, we need to create a `customer.proto` file to define our service and the rpc methods that the service provides.
Copy file name to clipboardExpand all lines: docs/advanced-guide/handling-data-migrations/page.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ INFO [16:55:46] Migration 20240226153000 ran successfully
99
99
100
100
101
101
GoFr maintains the records in the database itself which helps in tracking which migrations have already been executed and ensures that only migrations that have never been run are executed.
102
-
This way, you only need to ensure that your migrations are properly in place. ([Learn more](https://cloud.google.com/architecture/database-migration-concepts-principles-part-1))
102
+
This way, you only need to ensure that your migrations are properly in place. {% new-tab-link title="Learn more" href="https://cloud.google.com/architecture/database-migration-concepts-principles-part-1" /%}
OAuth 2.0 is the industry-standard protocol for authorization.
131
132
It focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices.
132
-
To know more about it refer [here](https://www.rfc-editor.org/rfc/rfc6749)
133
+
To know more about it refer {% new-tab-link title="here" href="https://www.rfc-editor.org/rfc/rfc6749" /%}
133
134
134
135
It involves sending the term `Bearer` trailed by the encoded token within the standard `Authorization` header.
Copy file name to clipboardExpand all lines: docs/advanced-guide/publishing-custom-metrics/page.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Publishing Custom Metrics
2
2
3
-
For GoFr default metrics refer: [observability](/docs/quick-start/observability).
3
+
For GoFr default metrics refer: {% new-tab-link title="observability" href="/docs/quick-start/observability" /%}.
4
4
5
5
GoFr can handle multiple different metrics concurrently, each uniquely identified by its name during initialization.
6
-
It supports the following [metrics](https://opentelemetry.io/docs/specs/otel/metrics/) types in prometheus format:
6
+
It supports the following {% new-tab-link title="metrics" href="https://opentelemetry.io/docs/specs/otel/metrics/" /%} types in prometheus format:
7
7
8
8
1. Counter
9
9
2. UpDownCounter
@@ -17,7 +17,7 @@ If any metric other than defaults provided, you can create them using custom met
17
17
18
18
## 1. Counter Metrics
19
19
20
-
Counter is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which supports non-negative increments.
20
+
Counter is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which supports non-negative increments.
21
21
22
22
### Usage
23
23
@@ -46,7 +46,7 @@ func main() {
46
46
47
47
## 2. UpDown Counter Metrics
48
48
49
-
UpDownCounter is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which supports increments and decrements.
49
+
UpDownCounter is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which supports increments and decrements.
50
50
Note: if the value is monotonically increasing, use Counter instead.
51
51
52
52
### Usage
@@ -76,7 +76,7 @@ func main() {
76
76
77
77
## 3. Histogram Metrics
78
78
79
-
Histogram is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
79
+
Histogram is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
80
80
81
81
### Usage
82
82
@@ -112,7 +112,7 @@ func main() {
112
112
113
113
## 4. Gauge Metrics
114
114
115
-
Gauge is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which can be used to record non-additive value(s) when changes occur.
115
+
Gauge is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which can be used to record non-additive value(s) when changes occur.
Copy file name to clipboardExpand all lines: docs/quick-start/configuration/page.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
# Configurations
2
2
3
-
GoFr reads configuration via environment variables. It provides an easy way to manage this. Application code is decoupled from how configuration is managed as per the [12-factor](https://12factor.net/config).
4
-
3
+
GoFr reads configuration via environment variables. It provides an easy way to manage this. Application code is decoupled from how configuration is managed as per the {% new-tab-link title="12-factor" href="https://12factor.net/config" /%}.
5
4
Configs in GoFr can be used to initialise datasources, tracing. In doing so it abstract the logic and gives an easy interface to setup different things.
6
5
7
6
To set configs create a `configs` directory in the project's root and add `.env` file.
0 commit comments