pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_event_query_proto protoreflect.FileDescriptor

Functions

func EventQueryServiceClientType

func EventQueryServiceClientType() reflect.Type

EventQueryServiceClientType .

func EventQueryServiceHandlerType

func EventQueryServiceHandlerType() reflect.Type

EventQueryServiceHandlerType .

func EventQueryServiceServerType

func EventQueryServiceServerType() reflect.Type

EventQueryServiceServerType .

func RegisterEventQueryServiceHandler

func RegisterEventQueryServiceHandler(r http.Router, srv EventQueryServiceHandler, opts ...http.HandleOption)

RegisterEventQueryServiceHandler register EventQueryServiceHandler to http.Router.

func RegisterEventQueryServiceImp

func RegisterEventQueryServiceImp(regester transport.Register, srv EventQueryServiceServer, opts ...transport.ServiceOption)

RegisterEventQueryServiceImp event_query.proto

func RegisterEventQueryServiceServer

func RegisterEventQueryServiceServer(s grpc1.ServiceRegistrar, srv EventQueryServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type EventQueryServiceClient

type EventQueryServiceClient interface {
	GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (*GetEventsResponse, error)
}

EventQueryServiceClient is the client API for EventQueryService 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 EventQueryServiceHandler

type EventQueryServiceHandler interface {
	// GET /api/events
	GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error)
}

EventQueryServiceHandler is the server API for EventQueryService service.

type EventQueryServiceServer

type EventQueryServiceServer interface {
	GetEvents(context.Context, *GetEventsRequest) (*GetEventsResponse, error)
}

EventQueryServiceServer is the server API for EventQueryService service. All implementations should embed UnimplementedEventQueryServiceServer for forward compatibility

type GetEventsRequest

type GetEventsRequest struct {
	EventId      string            `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	TraceId      string            `protobuf:"bytes,2,opt,name=traceId,proto3" json:"traceId,omitempty"`
	RelationId   string            `protobuf:"bytes,3,opt,name=relationId,proto3" json:"relationId,omitempty"`
	RelationType string            `protobuf:"bytes,4,opt,name=relationType,proto3" json:"relationType,omitempty"`
	Start        int64             `protobuf:"varint,5,opt,name=start,proto3" json:"start,omitempty"`
	End          int64             `protobuf:"varint,6,opt,name=end,proto3" json:"end,omitempty"`
	PageNo       int64             `protobuf:"varint,7,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	PageSize     int64             `protobuf:"varint,8,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Debug        bool              `protobuf:"varint,9,opt,name=debug,proto3" json:"debug,omitempty"`
	Tags         map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetEventsRequest) Descriptor deprecated

func (*GetEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetEventsRequest.ProtoReflect.Descriptor instead.

func (*GetEventsRequest) GetDebug

func (x *GetEventsRequest) GetDebug() bool

func (*GetEventsRequest) GetEnd

func (x *GetEventsRequest) GetEnd() int64

func (*GetEventsRequest) GetEventId

func (x *GetEventsRequest) GetEventId() string

func (*GetEventsRequest) GetPageNo

func (x *GetEventsRequest) GetPageNo() int64

func (*GetEventsRequest) GetPageSize

func (x *GetEventsRequest) GetPageSize() int64

func (*GetEventsRequest) GetRelationId

func (x *GetEventsRequest) GetRelationId() string

func (*GetEventsRequest) GetRelationType

func (x *GetEventsRequest) GetRelationType() string

func (*GetEventsRequest) GetStart

func (x *GetEventsRequest) GetStart() int64

func (*GetEventsRequest) GetTags

func (x *GetEventsRequest) GetTags() map[string]string

func (*GetEventsRequest) GetTraceId

func (x *GetEventsRequest) GetTraceId() string

func (*GetEventsRequest) MarshalJSON

func (m *GetEventsRequest) MarshalJSON() ([]byte, error)

GetEventsRequest implement json.Marshaler.

func (*GetEventsRequest) ProtoMessage

func (*GetEventsRequest) ProtoMessage()

func (*GetEventsRequest) ProtoReflect

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

func (*GetEventsRequest) Reset

func (x *GetEventsRequest) Reset()

func (*GetEventsRequest) String

func (x *GetEventsRequest) String() string

func (*GetEventsRequest) UnmarshalJSON

func (m *GetEventsRequest) UnmarshalJSON(b []byte) error

GetEventsRequest implement json.Marshaler.

func (*GetEventsRequest) UnmarshalURLValues

func (m *GetEventsRequest) UnmarshalURLValues(prefix string, values url.Values) error

GetEventsRequest implement urlenc.URLValuesUnmarshaler.

func (*GetEventsRequest) Validate

func (this *GetEventsRequest) Validate() error

type GetEventsResponse

type GetEventsResponse struct {
	Data *GetEventsResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsResponse) Descriptor deprecated

func (*GetEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetEventsResponse.ProtoReflect.Descriptor instead.

func (*GetEventsResponse) GetData

func (x *GetEventsResponse) GetData() *GetEventsResult

func (*GetEventsResponse) MarshalJSON

func (m *GetEventsResponse) MarshalJSON() ([]byte, error)

GetEventsResponse implement json.Marshaler.

func (*GetEventsResponse) ProtoMessage

func (*GetEventsResponse) ProtoMessage()

func (*GetEventsResponse) ProtoReflect

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

func (*GetEventsResponse) Reset

func (x *GetEventsResponse) Reset()

func (*GetEventsResponse) String

func (x *GetEventsResponse) String() string

func (*GetEventsResponse) UnmarshalJSON

func (m *GetEventsResponse) UnmarshalJSON(b []byte) error

GetEventsResponse implement json.Marshaler.

func (*GetEventsResponse) UnmarshalURLValues

func (m *GetEventsResponse) UnmarshalURLValues(prefix string, values url.Values) error

GetEventsResponse implement urlenc.URLValuesUnmarshaler.

func (*GetEventsResponse) Validate

func (this *GetEventsResponse) Validate() error

type GetEventsResult

type GetEventsResult struct {
	Items []*pb.Event `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsResult) Descriptor deprecated

func (*GetEventsResult) Descriptor() ([]byte, []int)

Deprecated: Use GetEventsResult.ProtoReflect.Descriptor instead.

func (*GetEventsResult) GetItems

func (x *GetEventsResult) GetItems() []*pb.Event

func (*GetEventsResult) MarshalJSON

func (m *GetEventsResult) MarshalJSON() ([]byte, error)

GetEventsResult implement json.Marshaler.

func (*GetEventsResult) ProtoMessage

func (*GetEventsResult) ProtoMessage()

func (*GetEventsResult) ProtoReflect

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

func (*GetEventsResult) Reset

func (x *GetEventsResult) Reset()

func (*GetEventsResult) String

func (x *GetEventsResult) String() string

func (*GetEventsResult) UnmarshalJSON

func (m *GetEventsResult) UnmarshalJSON(b []byte) error

GetEventsResult implement json.Marshaler.

func (*GetEventsResult) UnmarshalURLValues

func (m *GetEventsResult) UnmarshalURLValues(prefix string, values url.Values) error

GetEventsResult implement urlenc.URLValuesUnmarshaler.

func (*GetEventsResult) Validate

func (this *GetEventsResult) Validate() error

type UnimplementedEventQueryServiceServer

type UnimplementedEventQueryServiceServer struct {
}

UnimplementedEventQueryServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedEventQueryServiceServer) GetEvents

Jump to

Keyboard shortcuts

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