Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeConnection ¶
type NodeConnection interface { GetGrpcClientConn() *grpc.ClientConn GetBeaconApiUrl() string GetBeaconApiTimeout() time.Duration // contains filtered or unexported methods }
Use an interface with a private dummy function to force all other packages to call NewNodeConnection
func NewNodeConnection ¶
func NewNodeConnection(grpcConn *grpc.ClientConn, beaconApiUrl string, beaconApiTimeout time.Duration) NodeConnection
Click to show internal directories.
Click to hide internal directories.