adapter

package
v0.0.0-...-698e449 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastBtwDPInfo

func CastBtwDPInfo(from, to interface{}) error

func Import

func Import(stream []byte, p *protoadapter.Adapter, expand bool)

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
}

func (OauthTokenSource) Token

func (s OauthTokenSource) Token() (token *oauth2.Token, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL