package
0.0.0-20241107115949-fa1015b6a813
Repository: https://github.com/lushenle/golang-daily.git
Documentation: pkg.go.dev

# README

generate codes

protoc --proto_path=proto --go_out=pb --go_opt=paths=source_relative \
   --go-grpc_out=pb --go-grpc_opt=paths=source_relative proto/*.proto

generate tls cert

openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 \
    -subj "/C=US/ST=State/L=City/O=Company/CN=localhost" \
    -reqexts SAN \
    -extensions SAN \
    -config <(cat /etc/ssl/openssl.cnf \
        <(printf '[SAN]\nsubjectAltName=DNS:localhost')) \
    -keyout server.key \
    -out server.crt

# Packages

No description provided by the author

# Structs

No description provided by the author