Documentation ¶
Index ¶
- Variables
- func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetData() []*EventData
- func (x *Event) GetDescription() string
- func (x *Event) GetError() string
- func (x *Event) GetExtrinsicIndex() int64
- func (x *Event) GetIndex() int64
- func (x *Event) GetMethod() string
- func (x *Event) GetPhase() string
- func (x *Event) GetRaw() string
- func (x *Event) GetSection() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventData
- type EventServiceClient
- type EventServiceServer
- type GetByHeightRequest
- func (*GetByHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByHeightRequest) GetHeight() int64
- func (*GetByHeightRequest) ProtoMessage()
- func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetByHeightRequest) Reset()
- func (x *GetByHeightRequest) String() string
- type GetByHeightResponse
- func (*GetByHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByHeightResponse) GetEvents() []*Event
- func (*GetByHeightResponse) ProtoMessage()
- func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetByHeightResponse) Reset()
- func (x *GetByHeightResponse) String() string
- type UnimplementedEventServiceServer
- type UnsafeEventServiceServer
Constants ¶
This section is empty.
Variables ¶
var EventService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "event.EventService", HandlerType: (*EventServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByHeight", Handler: _EventService_GetByHeight_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/event/eventpb/event.proto", }
EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_grpc_event_eventpb_event_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
Types ¶
type Event ¶
type Event struct { Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Data []*EventData `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` Phase string `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` Section string `protobuf:"bytes,5,opt,name=section,proto3" json:"section,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` ExtrinsicIndex int64 `protobuf:"varint,7,opt,name=extrinsicIndex,proto3" json:"extrinsicIndex,omitempty"` Error string `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"` Raw string `protobuf:"bytes,9,opt,name=raw,proto3" json:"raw,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetDescription ¶
func (*Event) GetExtrinsicIndex ¶
func (*Event) GetSection ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventData ¶
type EventData struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*EventData) Descriptor
deprecated
func (*EventData) ProtoMessage ¶
func (*EventData) ProtoMessage()
func (*EventData) ProtoReflect ¶
func (x *EventData) ProtoReflect() protoreflect.Message
type EventServiceClient ¶
type EventServiceClient interface {
GetByHeight(ctx context.Context, in *GetByHeightRequest, opts ...grpc.CallOption) (*GetByHeightResponse, error)
}
EventServiceClient is the client API for EventService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEventServiceClient ¶
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient
type EventServiceServer ¶
type EventServiceServer interface { GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error) // contains filtered or unexported methods }
EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility
type GetByHeightRequest ¶
type GetByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetByHeightRequest) Descriptor
deprecated
func (*GetByHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByHeightRequest.ProtoReflect.Descriptor instead.
func (*GetByHeightRequest) GetHeight ¶
func (x *GetByHeightRequest) GetHeight() int64
func (*GetByHeightRequest) ProtoMessage ¶
func (*GetByHeightRequest) ProtoMessage()
func (*GetByHeightRequest) ProtoReflect ¶
func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message
func (*GetByHeightRequest) Reset ¶
func (x *GetByHeightRequest) Reset()
func (*GetByHeightRequest) String ¶
func (x *GetByHeightRequest) String() string
type GetByHeightResponse ¶
type GetByHeightResponse struct { Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*GetByHeightResponse) Descriptor
deprecated
func (*GetByHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByHeightResponse.ProtoReflect.Descriptor instead.
func (*GetByHeightResponse) GetEvents ¶
func (x *GetByHeightResponse) GetEvents() []*Event
func (*GetByHeightResponse) ProtoMessage ¶
func (*GetByHeightResponse) ProtoMessage()
func (*GetByHeightResponse) ProtoReflect ¶
func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message
func (*GetByHeightResponse) Reset ¶
func (x *GetByHeightResponse) Reset()
func (*GetByHeightResponse) String ¶
func (x *GetByHeightResponse) String() string
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct { }
UnimplementedEventServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEventServiceServer) GetByHeight ¶
func (UnimplementedEventServiceServer) GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error)
type UnsafeEventServiceServer ¶
type UnsafeEventServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.