Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

Add documentation for gokit #10

Merged
merged 12 commits into from
Mar 27, 2017
Merged

Add documentation for gokit #10

merged 12 commits into from
Mar 27, 2017

Conversation

zeeshanabid
Copy link
Contributor

No description provided.

README.md Outdated
[here](example/example.go).

## Creating a service
A service is created by calling `SimpleService` function in `kit` package. This creates a service and some default

Choose a reason for hiding this comment

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

I would use predefined set of middlewares instead of some default middlewares

README.md Outdated
## Context
Gokit provides some wrapper functions for `context.Context`. These wrappers are used internally for setting data in
context and passing it around in different modules. It is recommended to use these functions when you want to read
or set data in context. For details have a look at [wrpctx](wrpctx/wrpctx.go) package.

Choose a reason for hiding this comment

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

For further details maybe ?

README.md Outdated
## Logging
Gokit provides a custom formatter for [logrus](https://github.com/sirupsen/logrus). This formatter adds some extra
fields to the log entry. The log entry is then formatted to JSON before it is written to the stdout. It is recommended
to use this default formatter but you can easily override it if it is necessary. See logrus's documentation to see how

Choose a reason for hiding this comment

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

if necessary instead of if it is necessary

@@ -0,0 +1,227 @@
# Gokit

Choose a reason for hiding this comment

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

Explicitly say Gokit works with golang 1.8 and above ?

README.md Outdated
### Wrap Context
`Default: yes`

Wrapp context is a simple middleware to add some extra functionality around `context.Context`. For example it is not

Choose a reason for hiding this comment

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

Wrapp context is a middleware used to add extra functionality around ... ?

Remove vague words like some and simple maybe ?

README.md Outdated
### Recovery
`Default: yes`

Recovery middleware provides means to recover from panic that are raised in `http.Handler`. A default handler can be

Choose a reason for hiding this comment

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

is instead of are ?

Copy link

@abhimanyubabbar abhimanyubabbar left a comment

Choose a reason for hiding this comment

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

Good job with the documentation.

@zeeshanabid zeeshanabid merged commit 04e3849 into master Mar 27, 2017
@zeeshanabid zeeshanabid deleted the doc branch March 27, 2017 11:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants