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: 28 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_entity_proto protoreflect.FileDescriptor

Functions

func EntityServiceClientType added in v1.4.0

func EntityServiceClientType() reflect.Type

EntityServiceClientType .

func EntityServiceHandlerType added in v1.4.0

func EntityServiceHandlerType() reflect.Type

EntityServiceHandlerType .

func EntityServiceServerType added in v1.4.0

func EntityServiceServerType() reflect.Type

EntityServiceServerType .

func RegisterEntityServiceHandler added in v1.4.0

func RegisterEntityServiceHandler(r http.Router, srv EntityServiceHandler, opts ...http.HandleOption)

RegisterEntityServiceHandler register EntityServiceHandler to http.Router.

func RegisterEntityServiceImp added in v1.4.0

func RegisterEntityServiceImp(regester transport.Register, srv EntityServiceServer, opts ...transport.ServiceOption)

RegisterEntityServiceImp entity.proto

func RegisterEntityServiceServer added in v1.4.0

func RegisterEntityServiceServer(s grpc1.ServiceRegistrar, srv EntityServiceServer, opts ...grpc1.HandleOption)

func ServiceNames added in v1.4.0

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

ServiceNames return all service names

func Types added in v1.4.0

func Types() []reflect.Type

Types

type Entity added in v1.4.0

type Entity struct {
	Id                 string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type               string                     `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Key                string                     `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Values             map[string]*structpb.Value `` /* 153-byte string literal not displayed */
	Labels             map[string]string          `` /* 153-byte string literal not displayed */
	CreateTimeUnixNano int64                      `protobuf:"varint,6,opt,name=createTimeUnixNano,proto3" json:"createTimeUnixNano,omitempty"`
	UpdateTimeUnixNano int64                      `protobuf:"varint,7,opt,name=updateTimeUnixNano,proto3" json:"updateTimeUnixNano,omitempty"`
	// contains filtered or unexported fields
}

The Entity data model of the observability analysis platform. Unlike time series data, entity data has a unique ID, and data can be inserted, updated, and deleted according to the unique ID.

func (*Entity) Descriptor deprecated added in v1.4.0

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetCreateTimeUnixNano added in v1.4.0

func (x *Entity) GetCreateTimeUnixNano() int64

func (*Entity) GetId added in v1.4.0

func (x *Entity) GetId() string

func (*Entity) GetKey added in v1.4.0

func (x *Entity) GetKey() string

func (*Entity) GetLabels added in v1.4.0

func (x *Entity) GetLabels() map[string]string

func (*Entity) GetType added in v1.4.0

func (x *Entity) GetType() string

func (*Entity) GetUpdateTimeUnixNano added in v1.4.0

func (x *Entity) GetUpdateTimeUnixNano() int64

func (*Entity) GetValues added in v1.4.0

func (x *Entity) GetValues() map[string]*structpb.Value

func (*Entity) MarshalJSON added in v1.4.0

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

Entity implement json.Marshaler.

func (*Entity) ProtoMessage added in v1.4.0

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect added in v1.4.0

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

func (*Entity) Reset added in v1.4.0

func (x *Entity) Reset()

func (*Entity) String added in v1.4.0

func (x *Entity) String() string

func (*Entity) UnmarshalJSON added in v1.4.0

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

Entity implement json.Marshaler.

func (*Entity) UnmarshalURLValues added in v1.4.0

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

Entity implement urlenc.URLValuesUnmarshaler.

func (*Entity) Validate added in v1.4.0

func (this *Entity) Validate() error

type EntityList added in v1.4.0

type EntityList struct {
	List  []*Entity `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64     `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*EntityList) Descriptor deprecated added in v1.4.0

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

Deprecated: Use EntityList.ProtoReflect.Descriptor instead.

func (*EntityList) GetList added in v1.4.0

func (x *EntityList) GetList() []*Entity

func (*EntityList) GetTotal added in v1.4.0

func (x *EntityList) GetTotal() int64

func (*EntityList) MarshalJSON added in v1.4.0

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

EntityList implement json.Marshaler.

func (*EntityList) ProtoMessage added in v1.4.0

func (*EntityList) ProtoMessage()

func (*EntityList) ProtoReflect added in v1.4.0

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

func (*EntityList) Reset added in v1.4.0

func (x *EntityList) Reset()

func (*EntityList) String added in v1.4.0

func (x *EntityList) String() string

func (*EntityList) UnmarshalJSON added in v1.4.0

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

EntityList implement json.Marshaler.

func (*EntityList) UnmarshalURLValues added in v1.4.0

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

EntityList implement urlenc.URLValuesUnmarshaler.

func (*EntityList) Validate added in v1.4.0

func (this *EntityList) Validate() error

type EntityServiceClient added in v1.4.0

type EntityServiceClient interface {
	SetEntity(ctx context.Context, in *SetEntityRequest, opts ...grpc.CallOption) (*SetEntityResponse, error)
	RemoveEntity(ctx context.Context, in *RemoveEntityRequest, opts ...grpc.CallOption) (*RemoveEntityResponse, error)
	GetEntity(ctx context.Context, in *GetEntityRequest, opts ...grpc.CallOption) (*GetEntityResponse, error)
	ListEntities(ctx context.Context, in *ListEntitiesRequest, opts ...grpc.CallOption) (*ListEntitiesResponse, error)
}

EntityServiceClient is the client API for EntityService 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 NewEntityServiceClient added in v1.4.0

func NewEntityServiceClient(cc grpc1.ClientConnInterface) EntityServiceClient

type EntityServiceHandler added in v1.4.0

type EntityServiceHandler interface {
	// POST /api/oap/entities
	SetEntity(context.Context, *SetEntityRequest) (*SetEntityResponse, error)
	// DELETE /api/oap/entities/{type}/{key}
	RemoveEntity(context.Context, *RemoveEntityRequest) (*RemoveEntityResponse, error)
	// GET /api/oap/entities/{type}/{key}
	GetEntity(context.Context, *GetEntityRequest) (*GetEntityResponse, error)
	// GET /api/oap/entities
	ListEntities(context.Context, *ListEntitiesRequest) (*ListEntitiesResponse, error)
}

EntityServiceHandler is the server API for EntityService service.

type EntityServiceServer added in v1.4.0

EntityServiceServer is the server API for EntityService service. All implementations should embed UnimplementedEntityServiceServer for forward compatibility

type GetEntityRequest added in v1.4.0

type GetEntityRequest struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Key  string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEntityRequest) Descriptor deprecated added in v1.4.0

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

Deprecated: Use GetEntityRequest.ProtoReflect.Descriptor instead.

func (*GetEntityRequest) GetKey added in v1.4.0

func (x *GetEntityRequest) GetKey() string

func (*GetEntityRequest) GetType added in v1.4.0

func (x *GetEntityRequest) GetType() string

func (*GetEntityRequest) MarshalJSON added in v1.4.0

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

GetEntityRequest implement json.Marshaler.

func (*GetEntityRequest) ProtoMessage added in v1.4.0

func (*GetEntityRequest) ProtoMessage()

func (*GetEntityRequest) ProtoReflect added in v1.4.0

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

func (*GetEntityRequest) Reset added in v1.4.0

func (x *GetEntityRequest) Reset()

func (*GetEntityRequest) String added in v1.4.0

func (x *GetEntityRequest) String() string

func (*GetEntityRequest) UnmarshalJSON added in v1.4.0

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

GetEntityRequest implement json.Marshaler.

func (*GetEntityRequest) UnmarshalURLValues added in v1.4.0

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

GetEntityRequest implement urlenc.URLValuesUnmarshaler.

func (*GetEntityRequest) Validate added in v1.4.0

func (this *GetEntityRequest) Validate() error

type GetEntityResponse added in v1.4.0

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

func (*GetEntityResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use GetEntityResponse.ProtoReflect.Descriptor instead.

func (*GetEntityResponse) GetData added in v1.4.0

func (x *GetEntityResponse) GetData() *Entity

func (*GetEntityResponse) MarshalJSON added in v1.4.0

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

GetEntityResponse implement json.Marshaler.

func (*GetEntityResponse) ProtoMessage added in v1.4.0

func (*GetEntityResponse) ProtoMessage()

func (*GetEntityResponse) ProtoReflect added in v1.4.0

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

func (*GetEntityResponse) Reset added in v1.4.0

func (x *GetEntityResponse) Reset()

func (*GetEntityResponse) String added in v1.4.0

func (x *GetEntityResponse) String() string

func (*GetEntityResponse) UnmarshalJSON added in v1.4.0

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

GetEntityResponse implement json.Marshaler.

func (*GetEntityResponse) UnmarshalURLValues added in v1.4.0

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

GetEntityResponse implement urlenc.URLValuesUnmarshaler.

func (*GetEntityResponse) Validate added in v1.4.0

func (this *GetEntityResponse) Validate() error

type ListEntitiesRequest added in v1.4.0

type ListEntitiesRequest struct {
	Type   string            `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Labels map[string]string `` /* 153-byte string literal not displayed */
	Limit  int64             `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEntitiesRequest) Descriptor deprecated added in v1.4.0

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

Deprecated: Use ListEntitiesRequest.ProtoReflect.Descriptor instead.

func (*ListEntitiesRequest) GetLabels added in v1.4.0

func (x *ListEntitiesRequest) GetLabels() map[string]string

func (*ListEntitiesRequest) GetLimit added in v1.4.0

func (x *ListEntitiesRequest) GetLimit() int64

func (*ListEntitiesRequest) GetType added in v1.4.0

func (x *ListEntitiesRequest) GetType() string

func (*ListEntitiesRequest) MarshalJSON added in v1.4.0

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

ListEntitiesRequest implement json.Marshaler.

func (*ListEntitiesRequest) ProtoMessage added in v1.4.0

func (*ListEntitiesRequest) ProtoMessage()

func (*ListEntitiesRequest) ProtoReflect added in v1.4.0

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

func (*ListEntitiesRequest) Reset added in v1.4.0

func (x *ListEntitiesRequest) Reset()

func (*ListEntitiesRequest) String added in v1.4.0

func (x *ListEntitiesRequest) String() string

func (*ListEntitiesRequest) UnmarshalJSON added in v1.4.0

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

ListEntitiesRequest implement json.Marshaler.

func (*ListEntitiesRequest) UnmarshalURLValues added in v1.4.0

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

ListEntitiesRequest implement urlenc.URLValuesUnmarshaler.

func (*ListEntitiesRequest) Validate added in v1.4.0

func (this *ListEntitiesRequest) Validate() error

type ListEntitiesResponse added in v1.4.0

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

func (*ListEntitiesResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use ListEntitiesResponse.ProtoReflect.Descriptor instead.

func (*ListEntitiesResponse) GetData added in v1.4.0

func (x *ListEntitiesResponse) GetData() *EntityList

func (*ListEntitiesResponse) MarshalJSON added in v1.4.0

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

ListEntitiesResponse implement json.Marshaler.

func (*ListEntitiesResponse) ProtoMessage added in v1.4.0

func (*ListEntitiesResponse) ProtoMessage()

func (*ListEntitiesResponse) ProtoReflect added in v1.4.0

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

func (*ListEntitiesResponse) Reset added in v1.4.0

func (x *ListEntitiesResponse) Reset()

func (*ListEntitiesResponse) String added in v1.4.0

func (x *ListEntitiesResponse) String() string

func (*ListEntitiesResponse) UnmarshalJSON added in v1.4.0

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

ListEntitiesResponse implement json.Marshaler.

func (*ListEntitiesResponse) UnmarshalURLValues added in v1.4.0

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

ListEntitiesResponse implement urlenc.URLValuesUnmarshaler.

func (*ListEntitiesResponse) Validate added in v1.4.0

func (this *ListEntitiesResponse) Validate() error

type RemoveEntityRequest added in v1.4.0

type RemoveEntityRequest struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Key  string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveEntityRequest) Descriptor deprecated added in v1.4.0

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

Deprecated: Use RemoveEntityRequest.ProtoReflect.Descriptor instead.

func (*RemoveEntityRequest) GetKey added in v1.4.0

func (x *RemoveEntityRequest) GetKey() string

func (*RemoveEntityRequest) GetType added in v1.4.0

func (x *RemoveEntityRequest) GetType() string

func (*RemoveEntityRequest) MarshalJSON added in v1.4.0

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

RemoveEntityRequest implement json.Marshaler.

func (*RemoveEntityRequest) ProtoMessage added in v1.4.0

func (*RemoveEntityRequest) ProtoMessage()

func (*RemoveEntityRequest) ProtoReflect added in v1.4.0

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

func (*RemoveEntityRequest) Reset added in v1.4.0

func (x *RemoveEntityRequest) Reset()

func (*RemoveEntityRequest) String added in v1.4.0

func (x *RemoveEntityRequest) String() string

func (*RemoveEntityRequest) UnmarshalJSON added in v1.4.0

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

RemoveEntityRequest implement json.Marshaler.

func (*RemoveEntityRequest) UnmarshalURLValues added in v1.4.0

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

RemoveEntityRequest implement urlenc.URLValuesUnmarshaler.

func (*RemoveEntityRequest) Validate added in v1.4.0

func (this *RemoveEntityRequest) Validate() error

type RemoveEntityResponse added in v1.4.0

type RemoveEntityResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveEntityResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use RemoveEntityResponse.ProtoReflect.Descriptor instead.

func (*RemoveEntityResponse) GetOk added in v1.4.0

func (x *RemoveEntityResponse) GetOk() bool

func (*RemoveEntityResponse) MarshalJSON added in v1.4.0

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

RemoveEntityResponse implement json.Marshaler.

func (*RemoveEntityResponse) ProtoMessage added in v1.4.0

func (*RemoveEntityResponse) ProtoMessage()

func (*RemoveEntityResponse) ProtoReflect added in v1.4.0

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

func (*RemoveEntityResponse) Reset added in v1.4.0

func (x *RemoveEntityResponse) Reset()

func (*RemoveEntityResponse) String added in v1.4.0

func (x *RemoveEntityResponse) String() string

func (*RemoveEntityResponse) UnmarshalJSON added in v1.4.0

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

RemoveEntityResponse implement json.Marshaler.

func (*RemoveEntityResponse) UnmarshalURLValues added in v1.4.0

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

RemoveEntityResponse implement urlenc.URLValuesUnmarshaler.

func (*RemoveEntityResponse) Validate added in v1.4.0

func (this *RemoveEntityResponse) Validate() error

type SetEntityRequest added in v1.4.0

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

func (*SetEntityRequest) Descriptor deprecated added in v1.4.0

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

Deprecated: Use SetEntityRequest.ProtoReflect.Descriptor instead.

func (*SetEntityRequest) GetData added in v1.4.0

func (x *SetEntityRequest) GetData() *Entity

func (*SetEntityRequest) MarshalJSON added in v1.4.0

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

SetEntityRequest implement json.Marshaler.

func (*SetEntityRequest) ProtoMessage added in v1.4.0

func (*SetEntityRequest) ProtoMessage()

func (*SetEntityRequest) ProtoReflect added in v1.4.0

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

func (*SetEntityRequest) Reset added in v1.4.0

func (x *SetEntityRequest) Reset()

func (*SetEntityRequest) String added in v1.4.0

func (x *SetEntityRequest) String() string

func (*SetEntityRequest) UnmarshalJSON added in v1.4.0

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

SetEntityRequest implement json.Marshaler.

func (*SetEntityRequest) UnmarshalURLValues added in v1.4.0

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

SetEntityRequest implement urlenc.URLValuesUnmarshaler.

func (*SetEntityRequest) Validate added in v1.4.0

func (this *SetEntityRequest) Validate() error

type SetEntityResponse added in v1.4.0

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

func (*SetEntityResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use SetEntityResponse.ProtoReflect.Descriptor instead.

func (*SetEntityResponse) GetData added in v1.4.0

func (x *SetEntityResponse) GetData() string

func (*SetEntityResponse) MarshalJSON added in v1.4.0

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

SetEntityResponse implement json.Marshaler.

func (*SetEntityResponse) ProtoMessage added in v1.4.0

func (*SetEntityResponse) ProtoMessage()

func (*SetEntityResponse) ProtoReflect added in v1.4.0

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

func (*SetEntityResponse) Reset added in v1.4.0

func (x *SetEntityResponse) Reset()

func (*SetEntityResponse) String added in v1.4.0

func (x *SetEntityResponse) String() string

func (*SetEntityResponse) UnmarshalJSON added in v1.4.0

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

SetEntityResponse implement json.Marshaler.

func (*SetEntityResponse) UnmarshalURLValues added in v1.4.0

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

SetEntityResponse implement urlenc.URLValuesUnmarshaler.

func (*SetEntityResponse) Validate added in v1.4.0

func (this *SetEntityResponse) Validate() error

type UnimplementedEntityServiceServer added in v1.4.0

type UnimplementedEntityServiceServer struct {
}

UnimplementedEntityServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedEntityServiceServer) GetEntity added in v1.4.0

func (*UnimplementedEntityServiceServer) ListEntities added in v1.4.0

func (*UnimplementedEntityServiceServer) RemoveEntity added in v1.4.0

func (*UnimplementedEntityServiceServer) SetEntity added in v1.4.0

Jump to

Keyboard shortcuts

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