Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement grpc controller and client #23

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f833d98
add multichecker
The-Gleb Mar 10, 2024
937ce76
rebase iter20
The-Gleb Mar 10, 2024
7b7c0bb
add auto migration
The-Gleb Mar 11, 2024
3373ce5
add encode json and validator helper func
The-Gleb Mar 12, 2024
74d985b
some edits
The-Gleb Mar 12, 2024
27e50e5
create postgres docker image in database tests
The-Gleb Mar 12, 2024
a40d987
remove dead code, edit multichecker, fix unit tests
The-Gleb Mar 12, 2024
7495a63
Update README.md
The-Gleb Mar 12, 2024
7bd412e
Merge branch 'main' into iter20
The-Gleb Mar 12, 2024
31ab1c2
edit go version in workflow
The-Gleb Mar 12, 2024
0bcfc3a
Merge branch 'iter20' of https://github.com/The-Gleb/go_metrics_and_a…
The-Gleb Mar 12, 2024
489b5a2
add golangci-lint and backup service unit-tests
The-Gleb Mar 14, 2024
dfefc1a
obey to linters and remove some of them
The-Gleb Mar 14, 2024
10c513a
wsl added ^M
The-Gleb Mar 15, 2024
02b1994
create backupfile if doesn`t exist
The-Gleb Mar 15, 2024
ab4e2cb
refactor config files
The-Gleb Mar 16, 2024
662e8ec
add asymmetric encryption
The-Gleb Mar 16, 2024
239a7d4
edit flag and env vars names for config
The-Gleb Mar 16, 2024
6f46514
refactor config files again, add parsing config from json
The-Gleb Mar 17, 2024
cc034cc
graceful shutdown on SIGTERM,SIGQUIT,SIGINT
The-Gleb Mar 17, 2024
f91f436
obey to linter
The-Gleb Mar 17, 2024
78294ad
some edits
The-Gleb Mar 29, 2024
81b6183
check if client IP is in trusted subnet
The-Gleb Mar 29, 2024
07f8fb4
implement grpc controller
The-Gleb Mar 30, 2024
cf3c375
implement grpc client
The-Gleb Mar 31, 2024
c158dc6
clean dead code
The-Gleb Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/golanci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: static test

on:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Run golangci-lint
uses: golangci/[email protected]
with:
working-directory: ./
2 changes: 1 addition & 1 deletion .github/workflows/mertricstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

metricstest:
runs-on: ubuntu-latest
container: golang:1.21
container: golang:1.22.1
needs: branchtest

services:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/statictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
statictest:
runs-on: ubuntu-latest
container: golang:1.21
container: golang:1.22.1
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ playground.go

# Metrictest
metricstest
random
random

golangci-lint
Loading
Loading