Documentation
¶
Index ¶
- func ListMetadataResponse(metadata []*storage.Metadata) *pb.ListMetadataResponse
- func Metadata(metadata *storage.Metadata) *pb.Metadata
- func MetadataRequest() *generalPB.DefaultRequest
- func SubscriptionMetadata(id uint64, metadata *storage.Metadata) *pb.SubscriptionMetadata
- type Client
- func (client *Client) AttachTo(name string, input *modules.Input) error
- func (client *Client) GetMetadata(ctx context.Context, address string) (*pb.Metadata, error)
- func (client *Client) GetMetadataByMethodSinature(ctx context.Context, limit, offset uint64, order generalPB.SortOrder, ...) ([]*pb.Metadata, error)
- func (client *Client) GetMetadataByTopic(ctx context.Context, limit, offset uint64, order generalPB.SortOrder, ...) ([]*pb.Metadata, error)
- func (client *Client) Input(name string) (*modules.Input, error)
- func (client *Client) ListMetadata(ctx context.Context, limit, offset uint64, order generalPB.SortOrder) ([]*pb.Metadata, error)
- func (client *Client) Name() string
- func (client *Client) Output(name string) (*modules.Output, error)
- func (client *Client) Start(ctx context.Context)
- func (client *Client) SubscribeOnMetadata(ctx context.Context) (uint64, error)
- func (client *Client) UnsubscribeFromMetadata(ctx context.Context, id uint64) error
- type ClientConfig
- type Config
- type MetadataSubscription
- type Server
- func (server *Server) AttachTo(name string, input *modules.Input) error
- func (server *Server) Close() error
- func (server *Server) GetMetadata(ctx context.Context, req *pb.GetMetadataRequest) (*pb.Metadata, error)
- func (server *Server) GetMetadataByMethodSinature(ctx context.Context, req *pb.GetMetadataByMethodSinatureRequest) (*pb.ListMetadataResponse, error)
- func (server *Server) GetMetadataByTopic(ctx context.Context, req *pb.GetMetadataByTopicRequest) (*pb.ListMetadataResponse, error)
- func (server *Server) Input(name string) (*modules.Input, error)
- func (server *Server) ListMetadata(ctx context.Context, req *pb.ListMetadataRequest) (*pb.ListMetadataResponse, error)
- func (server *Server) Name() string
- func (server *Server) Output(name string) (*modules.Output, error)
- func (server *Server) Start(ctx context.Context)
- func (server *Server) SubscribeOnMetadata(req *generalPB.DefaultRequest, ...) error
- func (server *Server) UnsubscribeFromMetadata(ctx context.Context, req *generalPB.UnsubscribeRequest) (*generalPB.UnsubscribeResponse, error)
- type Subscriptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListMetadataResponse ¶
func ListMetadataResponse(metadata []*storage.Metadata) *pb.ListMetadataResponse
ListMetadataResponse -
func SubscriptionMetadata ¶
func SubscriptionMetadata(id uint64, metadata *storage.Metadata) *pb.SubscriptionMetadata
SubscriptionMetadata -
Types ¶
type Client ¶
type Client struct { *grpcModules.Client // contains filtered or unexported fields }
Client -
func (*Client) GetMetadata ¶
GetMetadata -
func (*Client) GetMetadataByMethodSinature ¶
func (client *Client) GetMetadataByMethodSinature(ctx context.Context, limit, offset uint64, order generalPB.SortOrder, signature string) ([]*pb.Metadata, error)
GetMetadataByMethodSinature -
func (*Client) GetMetadataByTopic ¶
func (client *Client) GetMetadataByTopic(ctx context.Context, limit, offset uint64, order generalPB.SortOrder, topic string) ([]*pb.Metadata, error)
GetMetadataByTopic -
func (*Client) ListMetadata ¶
func (client *Client) ListMetadata(ctx context.Context, limit, offset uint64, order generalPB.SortOrder) ([]*pb.Metadata, error)
ListMetadata -
func (*Client) SubscribeOnMetadata ¶
SubscribeOnMetadata -
type ClientConfig ¶
type ClientConfig struct { ServerAddress string `yaml:"server_address" validate:"required"` Subscriptions *Subscriptions `yaml:"subscriptions" validate:"omitempty"` }
ClientConfig -
type Config ¶
type Config struct { Server *grpc.ServerConfig `yaml:"server" validate:"omitempty"` Client *ClientConfig `yaml:"client" validate:"omitempty"` }
Config -
type MetadataSubscription ¶
type MetadataSubscription struct {
// contains filtered or unexported fields
}
MetadataSubscription -
func NewMetadataSubscription ¶
func NewMetadataSubscription() *MetadataSubscription
NewMetadataSubscription -
func (*MetadataSubscription) Filter ¶
func (m *MetadataSubscription) Filter(*storage.Metadata) bool
Filter -
func (*MetadataSubscription) Listen ¶
func (m *MetadataSubscription) Listen() <-chan *pb.SubscriptionMetadata
Listen -
func (*MetadataSubscription) Send ¶
func (m *MetadataSubscription) Send(data *pb.SubscriptionMetadata)
Send -
type Server ¶
type Server struct { *grpc.Server pb.UnimplementedMetadataServiceServer // contains filtered or unexported fields }
Server -
func (*Server) GetMetadata ¶
func (server *Server) GetMetadata(ctx context.Context, req *pb.GetMetadataRequest) (*pb.Metadata, error)
GetMetadata -
func (*Server) GetMetadataByMethodSinature ¶
func (server *Server) GetMetadataByMethodSinature(ctx context.Context, req *pb.GetMetadataByMethodSinatureRequest) (*pb.ListMetadataResponse, error)
GetMetadataByMethodSinature -
func (*Server) GetMetadataByTopic ¶
func (server *Server) GetMetadataByTopic(ctx context.Context, req *pb.GetMetadataByTopicRequest) (*pb.ListMetadataResponse, error)
GetMetadataByTopic -
func (*Server) ListMetadata ¶
func (server *Server) ListMetadata(ctx context.Context, req *pb.ListMetadataRequest) (*pb.ListMetadataResponse, error)
ListMetadata -
func (*Server) SubscribeOnMetadata ¶
func (server *Server) SubscribeOnMetadata(req *generalPB.DefaultRequest, stream pb.MetadataService_SubscribeOnMetadataServer) error
SubscribeOnMetadata -
func (*Server) UnsubscribeFromMetadata ¶
func (server *Server) UnsubscribeFromMetadata(ctx context.Context, req *generalPB.UnsubscribeRequest) (*generalPB.UnsubscribeResponse, error)
UnsubscribeFromMetadata -
type Subscriptions ¶
type Subscriptions struct {
Metadata bool `yaml:"head,omitempty"`
}
Subscriptions -
Click to show internal directories.
Click to hide internal directories.