{"modulePath":"github.com/smartcontractkit/chainlink-testing-framework/framework/components/chiprouter","version":"v1.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chiprouter\n\n## Constants\n\n```go\nconst (\n\tDefaultGRPCPort         = 50051\n\tDefaultAdminPort        = 50050\n\tDefaultBeholderGRPCPort = 50053\n\n\tImageOverrideEnvVar = \"CTF_CHIP_ROUTER_IMAGE\"\n)\n```\n\n## Functions\n\n```go\nfunc RegisterSubscriber(ctx context.Context, adminURL, name, endpoint string) (string, error)\n```\n\n```go\nfunc UnregisterSubscriber(ctx context.Context, adminURL, id string) error\n```\n\n## Types\n\n```go\ntype HealthResponse struct {\n}\n```\n\n```go\nfunc Health(ctx context.Context, adminURL string) (*HealthResponse, error)\n```\n\n```go\ntype Input struct {\n\tImage         string  `toml:\"image\" comment:\"Chip router Docker image\"`\n\tGRPCPort      int     `toml:\"grpc_port\" comment:\"Chip router gRPC host/container port\"`\n\tAdminPort     int     `toml:\"admin_port\" comment:\"Chip router admin HTTP host/container port\"`\n\tContainerName string  `toml:\"container_name\" comment:\"Docker container name\"`\n\tPullImage     bool    `toml:\"pull_image\" comment:\"Whether to pull Chip router image or not\"`\n\tLogLevel      string  `toml:\"log_level\" comment:\"Chip router log level (trace, debug, info, warn, error)\"`\n\tOut           *Output `toml:\"out\" comment:\"Chip router output\"`\n}\n```\n\n```go\ntype Output struct {\n\tUseCache         bool   `toml:\"use_cache\" comment:\"Whether to reuse cached output\"`\n\tContainerName    string `toml:\"container_name\" comment:\"Docker container name\"`\n\tExternalGRPCURL  string `toml:\"grpc_external_url\" comment:\"Host-reachable gRPC endpoint\"`\n\tInternalGRPCURL  string `toml:\"grpc_internal_url\" comment:\"Docker-network gRPC endpoint\"`\n\tExternalAdminURL string `toml:\"admin_external_url\" comment:\"Host-reachable admin endpoint\"`\n\tInternalAdminURL string `toml:\"admin_internal_url\" comment:\"Docker-network admin endpoint\"`\n}\n```\n\n```go\nfunc New(in *Input) (*Output, error)\n```\n\n```go\nfunc NewWithContext(ctx context.Context, in *Input) (*Output, error)\n```\n\n","path":"github.com/smartcontractkit/chainlink-testing-framework/framework/components/chiprouter","name":"chiprouter","synopsis":"","isRedistributable":true}
