github.com/MetalBlockchain/metalgo@v1.11.9/snow/validators/subnet_connector.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package validators 5 6 import ( 7 "context" 8 9 "github.com/MetalBlockchain/metalgo/ids" 10 ) 11 12 // SubnetConnector represents a handler that is called when a connection is 13 // marked as connected to a subnet 14 type SubnetConnector interface { 15 ConnectedSubnet(ctx context.Context, nodeID ids.NodeID, subnetID ids.ID) error 16 }