Skip to content

2637309949/go-service

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published