Documentation ¶
Index ¶
- func CastBtwDPInfo(from, to interface{}) error
- func Import(stream []byte, p *protoadapter.Adapter, expand bool)
- func ListAdapters(expand bool) []*protoadapter.Adapter
- func NewAdapter() *protoadapter.Adapter
- func NewDPServiceClient(listenAddr string) (protoadapter.DataProviderServiceClient, *grpc.ClientConn, error)
- func NewNodeServiceClient() (interface{}, *grpc.ClientConn, error)
- type DataProvider
- func (dp *DataProvider) AddToKnownPeers(ctx context.Context, info *protoadapter.DPInfo) (*protoadapter.Null, error)
- func (dp *DataProvider) HandShake() (*grpc.ClientConn, error)
- func (dp *DataProvider) ListFeeds(ctx context.Context, null *protoadapter.Null) (*protoadapter.Adapters, error)
- func (dp *DataProvider) ListFeedsFromAll(ctx context.Context, null *protoadapter.Null) (*protoadapter.Adapters, error)
- func (dp *DataProvider) ListKnownPeers(ctx context.Context, null *protoadapter.Null) (*protoadapter.DPInfos, error)
- func (dp *DataProvider) NewDataProviderService() (*grpc.Server, error)
- type OauthTokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CastBtwDPInfo ¶
func CastBtwDPInfo(from, to interface{}) error
func ListAdapters ¶
func ListAdapters(expand bool) []*protoadapter.Adapter
func NewAdapter ¶
func NewAdapter() *protoadapter.Adapter
func NewDPServiceClient ¶
func NewDPServiceClient(listenAddr string) (protoadapter.DataProviderServiceClient, *grpc.ClientConn, error)
func NewNodeServiceClient ¶
func NewNodeServiceClient() (interface{}, *grpc.ClientConn, error)
Types ¶
type DataProvider ¶
type DataProvider struct { protoadapter.UnimplementedDataProviderServiceServer // contains filtered or unexported fields }
func NewDataProvider ¶
func NewDataProvider() *DataProvider
func (*DataProvider) AddToKnownPeers ¶
func (dp *DataProvider) AddToKnownPeers(ctx context.Context, info *protoadapter.DPInfo) (*protoadapter.Null, error)
func (*DataProvider) HandShake ¶
func (dp *DataProvider) HandShake() (*grpc.ClientConn, error)
func (*DataProvider) ListFeeds ¶
func (dp *DataProvider) ListFeeds(ctx context.Context, null *protoadapter.Null) (*protoadapter.Adapters, error)
func (*DataProvider) ListFeedsFromAll ¶
func (dp *DataProvider) ListFeedsFromAll(ctx context.Context, null *protoadapter.Null) (*protoadapter.Adapters, error)
func (*DataProvider) ListKnownPeers ¶
func (dp *DataProvider) ListKnownPeers(ctx context.Context, null *protoadapter.Null) (*protoadapter.DPInfos, error)
func (*DataProvider) NewDataProviderService ¶
func (dp *DataProvider) NewDataProviderService() (*grpc.Server, error)
type OauthTokenSource ¶
type OauthTokenSource struct {
AuthKey string
}
Click to show internal directories.
Click to hide internal directories.