├── .github └── workflows │ └── ci.yml ├── Makefile ├── README.md ├── cert ├── ca-cert.pem ├── ca-cert.srl ├── ca-key.pem ├── client-cert.pem ├── client-ext.cnf ├── client-key.pem ├── client-req.pem ├── gen.sh ├── server-cert.pem ├── server-ext.cnf ├── server-key.pem └── server-req.pem ├── client ├── auth_client.go ├── auth_interceptor.go └── laptop_client.go ├── cmd ├── client │ └── main.go └── server │ └── main.go ├── go.mod ├── go.sum ├── img └── .gitkeep ├── nginx.conf ├── pb ├── auth_service.pb.go ├── auth_service.pb.gw.go ├── auth_service_grpc.pb.go ├── filter_message.pb.go ├── keyboard_message.pb.go ├── laptop_message.pb.go ├── laptop_service.pb.go ├── laptop_service.pb.gw.go ├── laptop_service_grpc.pb.go ├── memory_message.pb.go ├── processor_message.pb.go ├── screen_message.pb.go └── storage_message.pb.go ├── proto ├── auth_service.proto ├── filter_message.proto ├── google │ ├── api │ │ ├── annotations.proto │ │ ├── http.proto │ │ └── httpbody.proto │ └── rpc │ │ ├── code.proto │ │ ├── error_details.proto │ │ └── status.proto ├── keyboard_message.proto ├── laptop_message.proto ├── laptop_service.proto ├── memory_message.proto ├── processor_message.proto ├── screen_message.proto └── storage_message.proto ├── sample ├── laptop.go └── random.go ├── serializer ├── file.go ├── file_test.go └── json.go ├── service ├── auth_interceptor.go ├── auth_server.go ├── image_store.go ├── jwt_manager.go ├── laptop_client_test.go ├── laptop_server.go ├── laptop_server_test.go ├── laptop_store.go ├── rating_store.go ├── user.go └── user_store.go ├── swagger ├── auth_service.swagger.json ├── filter_message.swagger.json ├── keyboard_message.swagger.json ├── laptop_message.swagger.json ├── laptop_service.swagger.json ├── memory_message.swagger.json ├── processor_message.swagger.json ├── screen_message.swagger.json └── storage_message.swagger.json └── tmp ├── laptop.bin ├── laptop.jpg └── laptop.json /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/README.md -------------------------------------------------------------------------------- /cert/ca-cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/ca-cert.pem -------------------------------------------------------------------------------- /cert/ca-cert.srl: -------------------------------------------------------------------------------- 1 | B141E873FD7B8575 2 | -------------------------------------------------------------------------------- /cert/ca-key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/ca-key.pem -------------------------------------------------------------------------------- /cert/client-cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/client-cert.pem -------------------------------------------------------------------------------- /cert/client-ext.cnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/client-ext.cnf -------------------------------------------------------------------------------- /cert/client-key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/client-key.pem -------------------------------------------------------------------------------- /cert/client-req.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/client-req.pem -------------------------------------------------------------------------------- /cert/gen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/gen.sh -------------------------------------------------------------------------------- /cert/server-cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/server-cert.pem -------------------------------------------------------------------------------- /cert/server-ext.cnf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/server-ext.cnf -------------------------------------------------------------------------------- /cert/server-key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/server-key.pem -------------------------------------------------------------------------------- /cert/server-req.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cert/server-req.pem -------------------------------------------------------------------------------- /client/auth_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/client/auth_client.go -------------------------------------------------------------------------------- /client/auth_interceptor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/client/auth_interceptor.go -------------------------------------------------------------------------------- /client/laptop_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/client/laptop_client.go -------------------------------------------------------------------------------- /cmd/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cmd/client/main.go -------------------------------------------------------------------------------- /cmd/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/cmd/server/main.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/go.sum -------------------------------------------------------------------------------- /img/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nginx.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/nginx.conf -------------------------------------------------------------------------------- /pb/auth_service.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/auth_service.pb.go -------------------------------------------------------------------------------- /pb/auth_service.pb.gw.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/auth_service.pb.gw.go -------------------------------------------------------------------------------- /pb/auth_service_grpc.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/auth_service_grpc.pb.go -------------------------------------------------------------------------------- /pb/filter_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/filter_message.pb.go -------------------------------------------------------------------------------- /pb/keyboard_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/keyboard_message.pb.go -------------------------------------------------------------------------------- /pb/laptop_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/laptop_message.pb.go -------------------------------------------------------------------------------- /pb/laptop_service.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/laptop_service.pb.go -------------------------------------------------------------------------------- /pb/laptop_service.pb.gw.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/laptop_service.pb.gw.go -------------------------------------------------------------------------------- /pb/laptop_service_grpc.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/laptop_service_grpc.pb.go -------------------------------------------------------------------------------- /pb/memory_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/memory_message.pb.go -------------------------------------------------------------------------------- /pb/processor_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/processor_message.pb.go -------------------------------------------------------------------------------- /pb/screen_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/screen_message.pb.go -------------------------------------------------------------------------------- /pb/storage_message.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/pb/storage_message.pb.go -------------------------------------------------------------------------------- /proto/auth_service.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/auth_service.proto -------------------------------------------------------------------------------- /proto/filter_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/filter_message.proto -------------------------------------------------------------------------------- /proto/google/api/annotations.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/google/api/annotations.proto -------------------------------------------------------------------------------- /proto/google/api/http.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/google/api/http.proto -------------------------------------------------------------------------------- /proto/google/api/httpbody.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/google/api/httpbody.proto -------------------------------------------------------------------------------- /proto/google/rpc/code.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/google/rpc/code.proto -------------------------------------------------------------------------------- /proto/google/rpc/error_details.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/google/rpc/error_details.proto -------------------------------------------------------------------------------- /proto/google/rpc/status.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/google/rpc/status.proto -------------------------------------------------------------------------------- /proto/keyboard_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/keyboard_message.proto -------------------------------------------------------------------------------- /proto/laptop_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/laptop_message.proto -------------------------------------------------------------------------------- /proto/laptop_service.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/laptop_service.proto -------------------------------------------------------------------------------- /proto/memory_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/memory_message.proto -------------------------------------------------------------------------------- /proto/processor_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/processor_message.proto -------------------------------------------------------------------------------- /proto/screen_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/screen_message.proto -------------------------------------------------------------------------------- /proto/storage_message.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/proto/storage_message.proto -------------------------------------------------------------------------------- /sample/laptop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/sample/laptop.go -------------------------------------------------------------------------------- /sample/random.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/sample/random.go -------------------------------------------------------------------------------- /serializer/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/serializer/file.go -------------------------------------------------------------------------------- /serializer/file_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/serializer/file_test.go -------------------------------------------------------------------------------- /serializer/json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/serializer/json.go -------------------------------------------------------------------------------- /service/auth_interceptor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/auth_interceptor.go -------------------------------------------------------------------------------- /service/auth_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/auth_server.go -------------------------------------------------------------------------------- /service/image_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/image_store.go -------------------------------------------------------------------------------- /service/jwt_manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/jwt_manager.go -------------------------------------------------------------------------------- /service/laptop_client_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/laptop_client_test.go -------------------------------------------------------------------------------- /service/laptop_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/laptop_server.go -------------------------------------------------------------------------------- /service/laptop_server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/laptop_server_test.go -------------------------------------------------------------------------------- /service/laptop_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/laptop_store.go -------------------------------------------------------------------------------- /service/rating_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/rating_store.go -------------------------------------------------------------------------------- /service/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/user.go -------------------------------------------------------------------------------- /service/user_store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/service/user_store.go -------------------------------------------------------------------------------- /swagger/auth_service.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/auth_service.swagger.json -------------------------------------------------------------------------------- /swagger/filter_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/filter_message.swagger.json -------------------------------------------------------------------------------- /swagger/keyboard_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/keyboard_message.swagger.json -------------------------------------------------------------------------------- /swagger/laptop_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/laptop_message.swagger.json -------------------------------------------------------------------------------- /swagger/laptop_service.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/laptop_service.swagger.json -------------------------------------------------------------------------------- /swagger/memory_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/memory_message.swagger.json -------------------------------------------------------------------------------- /swagger/processor_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/processor_message.swagger.json -------------------------------------------------------------------------------- /swagger/screen_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/screen_message.swagger.json -------------------------------------------------------------------------------- /swagger/storage_message.swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/swagger/storage_message.swagger.json -------------------------------------------------------------------------------- /tmp/laptop.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/tmp/laptop.bin -------------------------------------------------------------------------------- /tmp/laptop.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/tmp/laptop.jpg -------------------------------------------------------------------------------- /tmp/laptop.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/techschool/pcbook-go/HEAD/tmp/laptop.json --------------------------------------------------------------------------------