hlf-control-plane

command module
v0.0.0-...-533d232 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 29 Imported by: 0

README

hlf-control-plane

Service for hlf fabric administration

TOC

Description

A utility service that provides simplified access to fabric administrative functions, such as creating channels, installing chaincodes, and updating channels.

Open API

The service provides OpenAPI (Swagger) functionality. The list of methods and request formats is available at the link.

Configuration

# Msp ID of your organization
mspId: testnetMSP
# Logging level
logLevel: debug
# Access token value
accessToken: "my_awesome_token"
# Path to the certificate and private key of your identity
identity:
  cert: certs/admin.pem
  key: certs/admin_key.pem
# or bccsp config of pkcs11
#  bccsp:
#    Default: PKCS11
#    PKCS11:
#      immutable: false
#      label: Org_Admin
#      library: /usr/lib/softhsm/libsofthsm2.so
#      pin: 123321
#      hash: SHA2
#      security: 256

# Tls credentials for mutual tls connection
tls:
  cert: cert.pem
  key: key.pem
  ca: ca.pem

# List of peers managed by organization
peers:
  - host: peer1.ideatestnet.io:7051
  - host: peer2.ideatestnet.io:7051

# ports configuration for grpc and http
listen:
  http: ":8080"
  grpc: ":8081"

Monitoring

The service includes a built-in healthcheck mechanism, available without authentication at the path /v1/healthz, returning information in the following format:

{
  "status": "SERVING"
}

Development

Utils

For the generation of tools needed for work, use

make build-tools

Tools and their dependencies are described in the tools module. The installation path is $(pwd)/bin by default.

Protobuf
  1. protodep - protobuf dependency management
  2. buf - generate and lint protobuf code

To download vendored protobuf dependencies:

bin/protodep up
Code generation

Use go generate in the root path to generate code from .proto and swagger client for tests:

go generate

License

Default license

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
Package proto is a reverse proxy.
Package proto is a reverse proxy.
service
system
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL