events

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package events is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_events_event_proto protoreflect.FileDescriptor

Functions

func RegisterChaincodeEventHandler

func RegisterChaincodeEventHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterChaincodeEventHandler registers the http handlers for service ChaincodeEvent to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterChaincodeEventHandlerClient

func RegisterChaincodeEventHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChaincodeEventClient) error

RegisterChaincodeEventHandlerClient registers the http handlers for service ChaincodeEvent to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChaincodeEventClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChaincodeEventClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChaincodeEventClient" to call the correct interceptors.

func RegisterChaincodeEventHandlerFromEndpoint

func RegisterChaincodeEventHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterChaincodeEventHandlerFromEndpoint is same as RegisterChaincodeEventHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterChaincodeEventHandlerServer added in v0.7.0

func RegisterChaincodeEventHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChaincodeEventServer) error

RegisterChaincodeEventHandlerServer registers the http handlers for service ChaincodeEvent to "mux". UnaryRPC :call ChaincodeEventServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterChaincodeEventServer

func RegisterChaincodeEventServer(s *grpc.Server, srv ChaincodeEventServer)

Types

type ChaincodeEventClient

type ChaincodeEventClient interface {
	EventStream(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (ChaincodeEvent_EventStreamClient, error)
}

ChaincodeEventClient is the client API for ChaincodeEvent service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ChaincodeEventGateway

type ChaincodeEventGateway struct {
	gateway.Chaincode
}

func (*ChaincodeEventGateway) ApiDef

ApiDef returns service definition

func (*ChaincodeEventGateway) EventStream

type ChaincodeEventServer

type ChaincodeEventServer interface {
	EventStream(*empty.Empty, ChaincodeEvent_EventStreamServer) error
}

ChaincodeEventServer is the server API for ChaincodeEvent service.

type ChaincodeEvent_EventStreamClient

type ChaincodeEvent_EventStreamClient interface {
	Recv() (*peer.ChaincodeEvent, error)
	grpc.ClientStream
}

type ChaincodeEvent_EventStreamServer

type ChaincodeEvent_EventStreamServer interface {
	Send(*peer.ChaincodeEvent) error
	grpc.ServerStream
}

type UnimplementedChaincodeEventServer added in v0.7.0

type UnimplementedChaincodeEventServer struct {
}

UnimplementedChaincodeEventServer can be embedded to have forward compatible implementations.

func (*UnimplementedChaincodeEventServer) EventStream added in v0.7.0

Jump to

Keyboard shortcuts

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