Documentation
¶
Overview ¶
Package topicpb is a generated protocol buffer package.
It is generated from these files:
github.com/m3db/m3/src/msg/generated/proto/topicpb/topic.proto
It has these top-level messages:
Topic ConsumerService Filters StoragePolicyFilter PercentageFilter ShardSetFilter RoutingPolicyFilter ServiceID
Index ¶
- Variables
- type ConsumerService
- func (*ConsumerService) Descriptor() ([]byte, []int)
- func (m *ConsumerService) GetConsumptionType() ConsumptionType
- func (m *ConsumerService) GetFilters() *Filters
- func (m *ConsumerService) GetMessageTtlNanos() int64
- func (m *ConsumerService) GetServiceId() *ServiceID
- func (m *ConsumerService) Marshal() (dAtA []byte, err error)
- func (m *ConsumerService) MarshalTo(dAtA []byte) (int, error)
- func (*ConsumerService) ProtoMessage()
- func (m *ConsumerService) Reset()
- func (m *ConsumerService) Size() (n int)
- func (m *ConsumerService) String() string
- func (m *ConsumerService) Unmarshal(dAtA []byte) error
- type ConsumptionType
- type Filters
- func (*Filters) Descriptor() ([]byte, []int)
- func (m *Filters) GetPercentageFilter() *PercentageFilter
- func (m *Filters) GetRoutingPolicyFilter() *RoutingPolicyFilter
- func (m *Filters) GetShardSetFilter() *ShardSetFilter
- func (m *Filters) GetStoragePolicyFilter() *StoragePolicyFilter
- func (m *Filters) Marshal() (dAtA []byte, err error)
- func (m *Filters) MarshalTo(dAtA []byte) (int, error)
- func (*Filters) ProtoMessage()
- func (m *Filters) Reset()
- func (m *Filters) Size() (n int)
- func (m *Filters) String() string
- func (m *Filters) Unmarshal(dAtA []byte) error
- type PercentageFilter
- func (*PercentageFilter) Descriptor() ([]byte, []int)
- func (m *PercentageFilter) GetPercentage() float64
- func (m *PercentageFilter) Marshal() (dAtA []byte, err error)
- func (m *PercentageFilter) MarshalTo(dAtA []byte) (int, error)
- func (*PercentageFilter) ProtoMessage()
- func (m *PercentageFilter) Reset()
- func (m *PercentageFilter) Size() (n int)
- func (m *PercentageFilter) String() string
- func (m *PercentageFilter) Unmarshal(dAtA []byte) error
- type RoutingPolicyFilter
- func (*RoutingPolicyFilter) Descriptor() ([]byte, []int)
- func (m *RoutingPolicyFilter) GetAllowedTrafficTypes() []string
- func (m *RoutingPolicyFilter) GetIsDefault() bool
- func (m *RoutingPolicyFilter) Marshal() (dAtA []byte, err error)
- func (m *RoutingPolicyFilter) MarshalTo(dAtA []byte) (int, error)
- func (*RoutingPolicyFilter) ProtoMessage()
- func (m *RoutingPolicyFilter) Reset()
- func (m *RoutingPolicyFilter) Size() (n int)
- func (m *RoutingPolicyFilter) String() string
- func (m *RoutingPolicyFilter) Unmarshal(dAtA []byte) error
- type ServiceID
- func (*ServiceID) Descriptor() ([]byte, []int)
- func (m *ServiceID) GetEnvironment() string
- func (m *ServiceID) GetName() string
- func (m *ServiceID) GetZone() string
- func (m *ServiceID) Marshal() (dAtA []byte, err error)
- func (m *ServiceID) MarshalTo(dAtA []byte) (int, error)
- func (*ServiceID) ProtoMessage()
- func (m *ServiceID) Reset()
- func (m *ServiceID) Size() (n int)
- func (m *ServiceID) String() string
- func (m *ServiceID) Unmarshal(dAtA []byte) error
- type ShardSetFilter
- func (*ShardSetFilter) Descriptor() ([]byte, []int)
- func (m *ShardSetFilter) GetShardSet() string
- func (m *ShardSetFilter) Marshal() (dAtA []byte, err error)
- func (m *ShardSetFilter) MarshalTo(dAtA []byte) (int, error)
- func (*ShardSetFilter) ProtoMessage()
- func (m *ShardSetFilter) Reset()
- func (m *ShardSetFilter) Size() (n int)
- func (m *ShardSetFilter) String() string
- func (m *ShardSetFilter) Unmarshal(dAtA []byte) error
- type StoragePolicyFilter
- func (*StoragePolicyFilter) Descriptor() ([]byte, []int)
- func (m *StoragePolicyFilter) GetStoragePolicies() []string
- func (m *StoragePolicyFilter) Marshal() (dAtA []byte, err error)
- func (m *StoragePolicyFilter) MarshalTo(dAtA []byte) (int, error)
- func (*StoragePolicyFilter) ProtoMessage()
- func (m *StoragePolicyFilter) Reset()
- func (m *StoragePolicyFilter) Size() (n int)
- func (m *StoragePolicyFilter) String() string
- func (m *StoragePolicyFilter) Unmarshal(dAtA []byte) error
- type Topic
- func (*Topic) Descriptor() ([]byte, []int)
- func (m *Topic) GetConsumerServices() []*ConsumerService
- func (m *Topic) GetName() string
- func (m *Topic) GetNumberOfShards() uint32
- func (m *Topic) Marshal() (dAtA []byte, err error)
- func (m *Topic) MarshalTo(dAtA []byte) (int, error)
- func (*Topic) ProtoMessage()
- func (m *Topic) Reset()
- func (m *Topic) Size() (n int)
- func (m *Topic) String() string
- func (m *Topic) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTopic = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTopic = fmt.Errorf("proto: integer overflow") )
View Source
var ConsumptionType_name = map[int32]string{
0: "UNKNOWN",
1: "SHARED",
2: "REPLICATED",
}
View Source
var ConsumptionType_value = map[string]int32{
"UNKNOWN": 0,
"SHARED": 1,
"REPLICATED": 2,
}
Functions ¶
This section is empty.
Types ¶
type ConsumerService ¶
type ConsumerService struct {
ServiceId *ServiceID `protobuf:"bytes,1,opt,name=service_id,json=serviceId" json:"service_id,omitempty"`
ConsumptionType ConsumptionType `` /* 136-byte string literal not displayed */
MessageTtlNanos int64 `protobuf:"varint,3,opt,name=message_ttl_nanos,json=messageTtlNanos,proto3" json:"message_ttl_nanos,omitempty"`
Filters *Filters `protobuf:"bytes,4,opt,name=filters" json:"filters,omitempty"`
}
func (*ConsumerService) Descriptor ¶
func (*ConsumerService) Descriptor() ([]byte, []int)
func (*ConsumerService) GetConsumptionType ¶
func (m *ConsumerService) GetConsumptionType() ConsumptionType
func (*ConsumerService) GetFilters ¶ added in v1.6.0
func (m *ConsumerService) GetFilters() *Filters
func (*ConsumerService) GetMessageTtlNanos ¶
func (m *ConsumerService) GetMessageTtlNanos() int64
func (*ConsumerService) GetServiceId ¶
func (m *ConsumerService) GetServiceId() *ServiceID
func (*ConsumerService) Marshal ¶
func (m *ConsumerService) Marshal() (dAtA []byte, err error)
func (*ConsumerService) ProtoMessage ¶
func (*ConsumerService) ProtoMessage()
func (*ConsumerService) Reset ¶
func (m *ConsumerService) Reset()
func (*ConsumerService) Size ¶
func (m *ConsumerService) Size() (n int)
func (*ConsumerService) String ¶
func (m *ConsumerService) String() string
func (*ConsumerService) Unmarshal ¶
func (m *ConsumerService) Unmarshal(dAtA []byte) error
type ConsumptionType ¶
type ConsumptionType int32
const ( ConsumptionType_UNKNOWN ConsumptionType = 0 ConsumptionType_SHARED ConsumptionType = 1 ConsumptionType_REPLICATED ConsumptionType = 2 )
func (ConsumptionType) EnumDescriptor ¶
func (ConsumptionType) EnumDescriptor() ([]byte, []int)
func (ConsumptionType) String ¶
func (x ConsumptionType) String() string
type Filters ¶ added in v1.6.0
type Filters struct {
StoragePolicyFilter *StoragePolicyFilter `protobuf:"bytes,1,opt,name=storage_policy_filter,json=storagePolicyFilter" json:"storage_policy_filter,omitempty"`
PercentageFilter *PercentageFilter `protobuf:"bytes,2,opt,name=percentage_filter,json=percentageFilter" json:"percentage_filter,omitempty"`
ShardSetFilter *ShardSetFilter `protobuf:"bytes,3,opt,name=shard_set_filter,json=shardSetFilter" json:"shard_set_filter,omitempty"`
RoutingPolicyFilter *RoutingPolicyFilter `protobuf:"bytes,4,opt,name=routing_policy_filter,json=routingPolicyFilter" json:"routing_policy_filter,omitempty"`
}
func (*Filters) Descriptor ¶ added in v1.6.0
func (*Filters) GetPercentageFilter ¶ added in v1.6.0
func (m *Filters) GetPercentageFilter() *PercentageFilter
func (*Filters) GetRoutingPolicyFilter ¶ added in v1.6.0
func (m *Filters) GetRoutingPolicyFilter() *RoutingPolicyFilter
func (*Filters) GetShardSetFilter ¶ added in v1.6.0
func (m *Filters) GetShardSetFilter() *ShardSetFilter
func (*Filters) GetStoragePolicyFilter ¶ added in v1.6.0
func (m *Filters) GetStoragePolicyFilter() *StoragePolicyFilter
func (*Filters) ProtoMessage ¶ added in v1.6.0
func (*Filters) ProtoMessage()
type PercentageFilter ¶ added in v1.6.0
type PercentageFilter struct {
Percentage float64 `protobuf:"fixed64,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
}
func (*PercentageFilter) Descriptor ¶ added in v1.6.0
func (*PercentageFilter) Descriptor() ([]byte, []int)
func (*PercentageFilter) GetPercentage ¶ added in v1.6.0
func (m *PercentageFilter) GetPercentage() float64
func (*PercentageFilter) Marshal ¶ added in v1.6.0
func (m *PercentageFilter) Marshal() (dAtA []byte, err error)
func (*PercentageFilter) MarshalTo ¶ added in v1.6.0
func (m *PercentageFilter) MarshalTo(dAtA []byte) (int, error)
func (*PercentageFilter) ProtoMessage ¶ added in v1.6.0
func (*PercentageFilter) ProtoMessage()
func (*PercentageFilter) Reset ¶ added in v1.6.0
func (m *PercentageFilter) Reset()
func (*PercentageFilter) Size ¶ added in v1.6.0
func (m *PercentageFilter) Size() (n int)
func (*PercentageFilter) String ¶ added in v1.6.0
func (m *PercentageFilter) String() string
func (*PercentageFilter) Unmarshal ¶ added in v1.6.0
func (m *PercentageFilter) Unmarshal(dAtA []byte) error
type RoutingPolicyFilter ¶ added in v1.6.0
type RoutingPolicyFilter struct {
AllowedTrafficTypes []string `protobuf:"bytes,1,rep,name=allowed_traffic_types,json=allowedTrafficTypes" json:"allowed_traffic_types,omitempty"`
IsDefault bool `protobuf:"varint,2,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
}
func (*RoutingPolicyFilter) Descriptor ¶ added in v1.6.0
func (*RoutingPolicyFilter) Descriptor() ([]byte, []int)
func (*RoutingPolicyFilter) GetAllowedTrafficTypes ¶ added in v1.6.0
func (m *RoutingPolicyFilter) GetAllowedTrafficTypes() []string
func (*RoutingPolicyFilter) GetIsDefault ¶ added in v1.6.0
func (m *RoutingPolicyFilter) GetIsDefault() bool
func (*RoutingPolicyFilter) Marshal ¶ added in v1.6.0
func (m *RoutingPolicyFilter) Marshal() (dAtA []byte, err error)
func (*RoutingPolicyFilter) MarshalTo ¶ added in v1.6.0
func (m *RoutingPolicyFilter) MarshalTo(dAtA []byte) (int, error)
func (*RoutingPolicyFilter) ProtoMessage ¶ added in v1.6.0
func (*RoutingPolicyFilter) ProtoMessage()
func (*RoutingPolicyFilter) Reset ¶ added in v1.6.0
func (m *RoutingPolicyFilter) Reset()
func (*RoutingPolicyFilter) Size ¶ added in v1.6.0
func (m *RoutingPolicyFilter) Size() (n int)
func (*RoutingPolicyFilter) String ¶ added in v1.6.0
func (m *RoutingPolicyFilter) String() string
func (*RoutingPolicyFilter) Unmarshal ¶ added in v1.6.0
func (m *RoutingPolicyFilter) Unmarshal(dAtA []byte) error
type ServiceID ¶
type ServiceID struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"`
Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
}
func (*ServiceID) Descriptor ¶
func (*ServiceID) GetEnvironment ¶
func (*ServiceID) ProtoMessage ¶
func (*ServiceID) ProtoMessage()
type ShardSetFilter ¶ added in v1.6.0
type ShardSetFilter struct {
ShardSet string `protobuf:"bytes,1,opt,name=shard_set,json=shardSet,proto3" json:"shard_set,omitempty"`
}
func (*ShardSetFilter) Descriptor ¶ added in v1.6.0
func (*ShardSetFilter) Descriptor() ([]byte, []int)
func (*ShardSetFilter) GetShardSet ¶ added in v1.6.0
func (m *ShardSetFilter) GetShardSet() string
func (*ShardSetFilter) Marshal ¶ added in v1.6.0
func (m *ShardSetFilter) Marshal() (dAtA []byte, err error)
func (*ShardSetFilter) MarshalTo ¶ added in v1.6.0
func (m *ShardSetFilter) MarshalTo(dAtA []byte) (int, error)
func (*ShardSetFilter) ProtoMessage ¶ added in v1.6.0
func (*ShardSetFilter) ProtoMessage()
func (*ShardSetFilter) Reset ¶ added in v1.6.0
func (m *ShardSetFilter) Reset()
func (*ShardSetFilter) Size ¶ added in v1.6.0
func (m *ShardSetFilter) Size() (n int)
func (*ShardSetFilter) String ¶ added in v1.6.0
func (m *ShardSetFilter) String() string
func (*ShardSetFilter) Unmarshal ¶ added in v1.6.0
func (m *ShardSetFilter) Unmarshal(dAtA []byte) error
type StoragePolicyFilter ¶ added in v1.6.0
type StoragePolicyFilter struct {
StoragePolicies []string `protobuf:"bytes,1,rep,name=storage_policies,json=storagePolicies" json:"storage_policies,omitempty"`
}
func (*StoragePolicyFilter) Descriptor ¶ added in v1.6.0
func (*StoragePolicyFilter) Descriptor() ([]byte, []int)
func (*StoragePolicyFilter) GetStoragePolicies ¶ added in v1.6.0
func (m *StoragePolicyFilter) GetStoragePolicies() []string
func (*StoragePolicyFilter) Marshal ¶ added in v1.6.0
func (m *StoragePolicyFilter) Marshal() (dAtA []byte, err error)
func (*StoragePolicyFilter) MarshalTo ¶ added in v1.6.0
func (m *StoragePolicyFilter) MarshalTo(dAtA []byte) (int, error)
func (*StoragePolicyFilter) ProtoMessage ¶ added in v1.6.0
func (*StoragePolicyFilter) ProtoMessage()
func (*StoragePolicyFilter) Reset ¶ added in v1.6.0
func (m *StoragePolicyFilter) Reset()
func (*StoragePolicyFilter) Size ¶ added in v1.6.0
func (m *StoragePolicyFilter) Size() (n int)
func (*StoragePolicyFilter) String ¶ added in v1.6.0
func (m *StoragePolicyFilter) String() string
func (*StoragePolicyFilter) Unmarshal ¶ added in v1.6.0
func (m *StoragePolicyFilter) Unmarshal(dAtA []byte) error
type Topic ¶
type Topic struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
NumberOfShards uint32 `protobuf:"varint,2,opt,name=number_of_shards,json=numberOfShards,proto3" json:"number_of_shards,omitempty"`
ConsumerServices []*ConsumerService `protobuf:"bytes,3,rep,name=consumer_services,json=consumerServices" json:"consumer_services,omitempty"`
}
func (*Topic) Descriptor ¶
func (*Topic) GetConsumerServices ¶
func (m *Topic) GetConsumerServices() []*ConsumerService
func (*Topic) GetNumberOfShards ¶
func (*Topic) ProtoMessage ¶
func (*Topic) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.