eventpb

package
v0.0.0-...-c15509c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetData

func (x *Event) GetData() []*EventData

func (*Event) GetDescription

func (x *Event) GetDescription() string

func (*Event) GetError

func (x *Event) GetError() string

func (*Event) GetExtrinsicIndex

func (x *Event) GetExtrinsicIndex() int64

func (*Event) GetIndex

func (x *Event) GetIndex() int64

func (*Event) GetMethod

func (x *Event) GetMethod() string

func (*Event) GetPhase

func (x *Event) GetPhase() string

func (*Event) GetRaw

func (x *Event) GetRaw() string

func (*Event) GetSection

func (x *Event) GetSection() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use EventData.ProtoReflect.Descriptor instead.

func (*EventData) GetName

func (x *EventData) GetName() string

func (*EventData) GetValue

func (x *EventData) GetValue() string

func (*EventData) ProtoMessage

func (*EventData) ProtoMessage()

func (*EventData) ProtoReflect

func (x *EventData) ProtoReflect() protoreflect.Message

func (*EventData) Reset

func (x *EventData) Reset()

func (*EventData) String

func (x *EventData) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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