use-go / mservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

Installing protoc

PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP

Installing micro

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
wget -q  https://raw.githubusercontent.com/2637309949/micro/master/scripts/install.sh -O - | /bin/bash

Run micro server

micro server

Multi-cluster Deployment

Usage

micro new test && cd test-service && make proto && make up

VerifyAccess

micro auth create rule --access=granted --scope='*' --resource="*:*:*" onlyloggedin
micro auth create rule --access=granted --resource="service:auth:*" auth
micro auth create rule --access=granted --resource="service:micro.:*" micro
micro auth create rule --access=granted --resource="service:assert:*" assert
micro auth create rule --access=granted --resource="service:quicktype:Quicktype.Call" quicktype
micro auth create rule --access=granted --resource="service:cas:*" cas
micro auth delete rule default

About


Languages

Language:Go 76.4%Language:HTML 16.9%Language:Makefile 5.9%Language:Dockerfile 0.6%Language:mupad 0.1%Language:Shell 0.0%