github.com/Night-mk/quorum@v21.1.0+incompatible/plugin/initializer/gateway.go (about)

     1  package initializer
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/ethereum/go-ethereum/plugin/gen/proto_common"
     7  )
     8  
     9  type PluginGateway struct {
    10  	client proto_common.PluginInitializerClient
    11  }
    12  
    13  func (g *PluginGateway) Init(ctx context.Context, nodeIdentity string, rawConfiguration []byte) error {
    14  	_, err := g.client.Init(ctx, &proto_common.PluginInitialization_Request{
    15  		HostIdentity:     nodeIdentity,
    16  		RawConfiguration: rawConfiguration,
    17  	})
    18  	return err
    19  }