Sergiusz Bazanski | 6eaaaf9 | 2019-08-02 01:25:31 +0200 | [diff] [blame] | 1 | package provider |
2 | |||||
3 | import ( | ||||
4 | "context" | ||||
5 | |||||
6 | pb "code.hackerspace.pl/hscloud/bgpwtf/cccampix/proto" | ||||
7 | ) | ||||
8 | |||||
9 | // Provider is the interface exposed to the service by IRR proxies. | ||||
10 | type Provider interface { | ||||
11 | // Return a proto response for a given AS. | ||||
12 | Query(ctx context.Context, as uint64) (*pb.IRRQueryResponse, error) | ||||
13 | } |