Categorygithub.com/pzl/mstk
modulepackage
0.0.0-20220220185130-5886858d6838
Repository: https://github.com/pzl/mstk.git
Documentation: pkg.go.dev

# README

Micro Service Toolkit

a.k.a. "mistake"

mstk is a personal collection of repetitive things I found myself doing in a few personal microservices. Therefore it is highly opinionated, and tightly bound to how I set things up.

It is not meant to be a general-use framework. If you do want one of those, I encourage you look at

and many more.

License

Copyright 2019 Dan Panzarella

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

# Packages

Usage: To create a general use logger, call logger.New(json).

# Functions

Usage: server.New(server.Addr("127.0.0.1:3333")).
middleware.
adds common defined flags (-d, -c, -j, -v).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
https://gist.github.com/denji/12b3a568f092ab951456#perfect-ssl-labs-score-with-go.
No description provided by the author

# Structs

No description provided by the author
This is a wrapper around koanf and pflag It includes some universally common flags (-v, -c (config)) and standardizes the config loading order to file < environment < flag and it includes some config directory file searching.
http.Server with sane defaults, able to listen on multiple nets, and with optimal SSL config */.

# Type aliases

No description provided by the author