Documentation ¶
Index ¶
- Variables
- func RegisterContentFilteringServiceServer(s grpc.ServiceRegistrar, srv ContentFilteringServiceServer)
- type Category
- type ContentFilteringServiceClient
- type ContentFilteringServiceServer
- type Filter
- type GetGlobalFilterRequest
- type GetGlobalFilterResponse
- func (*GetGlobalFilterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGlobalFilterResponse) GetActiveFilter() *Filter
- func (*GetGlobalFilterResponse) ProtoMessage()
- func (x *GetGlobalFilterResponse) ProtoReflect() protoreflect.Message
- func (x *GetGlobalFilterResponse) Reset()
- func (x *GetGlobalFilterResponse) String() string
- type SetFilterStatus
- func (SetFilterStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SetFilterStatus) Enum() *SetFilterStatus
- func (SetFilterStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SetFilterStatus) Number() protoreflect.EnumNumber
- func (x SetFilterStatus) String() string
- func (SetFilterStatus) Type() protoreflect.EnumType
- type SetGlobalFilterRequest
- func (*SetGlobalFilterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGlobalFilterRequest) GetFilter() *Filter
- func (*SetGlobalFilterRequest) ProtoMessage()
- func (x *SetGlobalFilterRequest) ProtoReflect() protoreflect.Message
- func (x *SetGlobalFilterRequest) Reset()
- func (x *SetGlobalFilterRequest) String() string
- type SetGlobalFilterResponse
- func (*SetGlobalFilterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetGlobalFilterResponse) GetDescription() string
- func (x *SetGlobalFilterResponse) GetStatus() SetFilterStatus
- func (*SetGlobalFilterResponse) ProtoMessage()
- func (x *SetGlobalFilterResponse) ProtoReflect() protoreflect.Message
- func (x *SetGlobalFilterResponse) Reset()
- func (x *SetGlobalFilterResponse) String() string
- type UnimplementedContentFilteringServiceServer
- type UnsafeContentFilteringServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( SetFilterStatus_name = map[int32]string{ 0: "SET_FILTER_STATUS_UNSPECIFIED", 1: "SET_FILTER_STATUS_OK", 2: "SET_FILTER_STATUS_ERROR", } SetFilterStatus_value = map[string]int32{ "SET_FILTER_STATUS_UNSPECIFIED": 0, "SET_FILTER_STATUS_OK": 1, "SET_FILTER_STATUS_ERROR": 2, } )
Enum value maps for SetFilterStatus.
var ( Category_name = map[int32]string{ 0: "CATEGORY_UNSPECIFIED", 1: "CATEGORY_ABORTION", 2: "CATEGORY_ADULT", 3: "CATEGORY_ADVERTISING", 4: "CATEGORY_ALCOHOL_AND_TOBACCO", 5: "CATEGORY_BLOGS_AND_PERSONAL", 6: "CATEGORY_BUSINESS", 7: "CATEGORY_CHAT_AND_MESSAGING", 8: "CATEGORY_CONTENTSERVER", 9: "CATEGORY_CRYPTOMINING", 10: "CATEGORY_DECEPTIVE", 11: "CATEGORY_DRUGS", 12: "CATEGORY_ECONOMY_AND_FINANCE", 13: "CATEGORY_EDUCATION", 14: "CATEGORY_ENTERTAINMENT", 15: "CATEGORY_FOOD_AND_RECIPES", 16: "CATEGORY_GAMBLING", 17: "CATEGORY_GAMES", 18: "CATEGORY_GOVERNMENT", 19: "CATEGORY_HACKING", 20: "CATEGORY_HATE", 21: "CATEGORY_HEALTH", 22: "CATEGORY_HUMOR", 23: "CATEGORY_ILLEGALCONTENT", 24: "CATEGORY_INFORMATIONTECH", 25: "CATEGORY_JOBRELATED", 26: "CATEGORY_MALICIOUS", 27: "CATEGORY_MEDIASHARING", 28: "CATEGORY_MESSAGEBOARDS_AND_FORUMS", 29: "CATEGORY_NEWS_AND_MEDIA", 30: "CATEGORY_PARKED", 31: "CATEGORY_PERSONALS", 32: "CATEGORY_PRO3XY_AND_FILTERAVOIDANCE", 33: "CATEGORY_REALESTATE", 34: "CATEGORY_RELIGION", 35: "CATEGORY_SEARCHENGINES_AND_PORTALS", 36: "CATEGORY_SHOPPING", 37: "CATEGORY_SOCIALNETWORKING", 38: "CATEGORY_SPORTS", 39: "CATEGORY_STREAMINGMEDIA", 40: "CATEGORY_TRACKERS", 41: "CATEGORY_TRANSLATORS", 42: "CATEGORY_TRAVEL", 43: "CATEGORY_UNCATEGORIZED", 44: "CATEGORY_VEHICLES", 45: "CATEGORY_VIRTUALREALITY", 46: "CATEGORY_WEAPONS", } Category_value = map[string]int32{ "CATEGORY_UNSPECIFIED": 0, "CATEGORY_ABORTION": 1, "CATEGORY_ADULT": 2, "CATEGORY_ADVERTISING": 3, "CATEGORY_ALCOHOL_AND_TOBACCO": 4, "CATEGORY_BLOGS_AND_PERSONAL": 5, "CATEGORY_BUSINESS": 6, "CATEGORY_CHAT_AND_MESSAGING": 7, "CATEGORY_CONTENTSERVER": 8, "CATEGORY_CRYPTOMINING": 9, "CATEGORY_DECEPTIVE": 10, "CATEGORY_DRUGS": 11, "CATEGORY_ECONOMY_AND_FINANCE": 12, "CATEGORY_EDUCATION": 13, "CATEGORY_ENTERTAINMENT": 14, "CATEGORY_FOOD_AND_RECIPES": 15, "CATEGORY_GAMBLING": 16, "CATEGORY_GAMES": 17, "CATEGORY_GOVERNMENT": 18, "CATEGORY_HACKING": 19, "CATEGORY_HATE": 20, "CATEGORY_HEALTH": 21, "CATEGORY_HUMOR": 22, "CATEGORY_ILLEGALCONTENT": 23, "CATEGORY_INFORMATIONTECH": 24, "CATEGORY_JOBRELATED": 25, "CATEGORY_MALICIOUS": 26, "CATEGORY_MEDIASHARING": 27, "CATEGORY_MESSAGEBOARDS_AND_FORUMS": 28, "CATEGORY_NEWS_AND_MEDIA": 29, "CATEGORY_PARKED": 30, "CATEGORY_PERSONALS": 31, "CATEGORY_PRO3XY_AND_FILTERAVOIDANCE": 32, "CATEGORY_REALESTATE": 33, "CATEGORY_RELIGION": 34, "CATEGORY_SEARCHENGINES_AND_PORTALS": 35, "CATEGORY_SHOPPING": 36, "CATEGORY_SOCIALNETWORKING": 37, "CATEGORY_SPORTS": 38, "CATEGORY_STREAMINGMEDIA": 39, "CATEGORY_TRACKERS": 40, "CATEGORY_TRANSLATORS": 41, "CATEGORY_TRAVEL": 42, "CATEGORY_UNCATEGORIZED": 43, "CATEGORY_VEHICLES": 44, "CATEGORY_VIRTUALREALITY": 45, "CATEGORY_WEAPONS": 46, } )
Enum value maps for Category.
var ContentFilteringService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wgtwo.data.v1.ContentFilteringService", HandlerType: (*ContentFilteringServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetGlobalFilter", Handler: _ContentFilteringService_SetGlobalFilter_Handler, }, { MethodName: "GetGlobalFilter", Handler: _ContentFilteringService_GetGlobalFilter_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wgtwo/data/v1/content_filtering.proto", }
ContentFilteringService_ServiceDesc is the grpc.ServiceDesc for ContentFilteringService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_wgtwo_data_v1_content_filtering_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContentFilteringServiceServer ¶
func RegisterContentFilteringServiceServer(s grpc.ServiceRegistrar, srv ContentFilteringServiceServer)
Types ¶
type Category ¶
type Category int32
const ( Category_CATEGORY_UNSPECIFIED Category = 0 Category_CATEGORY_ABORTION Category = 1 Category_CATEGORY_ADULT Category = 2 Category_CATEGORY_ADVERTISING Category = 3 Category_CATEGORY_ALCOHOL_AND_TOBACCO Category = 4 Category_CATEGORY_BLOGS_AND_PERSONAL Category = 5 Category_CATEGORY_BUSINESS Category = 6 Category_CATEGORY_CHAT_AND_MESSAGING Category = 7 Category_CATEGORY_CONTENTSERVER Category = 8 Category_CATEGORY_CRYPTOMINING Category = 9 Category_CATEGORY_DECEPTIVE Category = 10 Category_CATEGORY_DRUGS Category = 11 Category_CATEGORY_ECONOMY_AND_FINANCE Category = 12 Category_CATEGORY_EDUCATION Category = 13 Category_CATEGORY_ENTERTAINMENT Category = 14 Category_CATEGORY_FOOD_AND_RECIPES Category = 15 Category_CATEGORY_GAMBLING Category = 16 Category_CATEGORY_GAMES Category = 17 Category_CATEGORY_GOVERNMENT Category = 18 Category_CATEGORY_HACKING Category = 19 Category_CATEGORY_HATE Category = 20 Category_CATEGORY_HEALTH Category = 21 Category_CATEGORY_HUMOR Category = 22 Category_CATEGORY_ILLEGALCONTENT Category = 23 Category_CATEGORY_INFORMATIONTECH Category = 24 Category_CATEGORY_JOBRELATED Category = 25 Category_CATEGORY_MALICIOUS Category = 26 Category_CATEGORY_MEDIASHARING Category = 27 Category_CATEGORY_MESSAGEBOARDS_AND_FORUMS Category = 28 Category_CATEGORY_NEWS_AND_MEDIA Category = 29 Category_CATEGORY_PARKED Category = 30 Category_CATEGORY_PERSONALS Category = 31 Category_CATEGORY_PRO3XY_AND_FILTERAVOIDANCE Category = 32 Category_CATEGORY_REALESTATE Category = 33 Category_CATEGORY_RELIGION Category = 34 Category_CATEGORY_SEARCHENGINES_AND_PORTALS Category = 35 Category_CATEGORY_SHOPPING Category = 36 Category_CATEGORY_SOCIALNETWORKING Category = 37 Category_CATEGORY_SPORTS Category = 38 Category_CATEGORY_STREAMINGMEDIA Category = 39 Category_CATEGORY_TRACKERS Category = 40 Category_CATEGORY_TRANSLATORS Category = 41 Category_CATEGORY_TRAVEL Category = 42 Category_CATEGORY_UNCATEGORIZED Category = 43 Category_CATEGORY_VEHICLES Category = 44 Category_CATEGORY_VIRTUALREALITY Category = 45 Category_CATEGORY_WEAPONS Category = 46 )
func (Category) Descriptor ¶
func (Category) Descriptor() protoreflect.EnumDescriptor
func (Category) EnumDescriptor
deprecated
func (Category) Number ¶
func (x Category) Number() protoreflect.EnumNumber
func (Category) Type ¶
func (Category) Type() protoreflect.EnumType
type ContentFilteringServiceClient ¶
type ContentFilteringServiceClient interface { SetGlobalFilter(ctx context.Context, in *SetGlobalFilterRequest, opts ...grpc.CallOption) (*SetGlobalFilterResponse, error) GetGlobalFilter(ctx context.Context, in *GetGlobalFilterRequest, opts ...grpc.CallOption) (*GetGlobalFilterResponse, error) }
ContentFilteringServiceClient is the client API for ContentFilteringService 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 NewContentFilteringServiceClient ¶
func NewContentFilteringServiceClient(cc grpc.ClientConnInterface) ContentFilteringServiceClient
type ContentFilteringServiceServer ¶
type ContentFilteringServiceServer interface { SetGlobalFilter(context.Context, *SetGlobalFilterRequest) (*SetGlobalFilterResponse, error) GetGlobalFilter(context.Context, *GetGlobalFilterRequest) (*GetGlobalFilterResponse, error) }
ContentFilteringServiceServer is the server API for ContentFilteringService service. All implementations should embed UnimplementedContentFilteringServiceServer for forward compatibility
type Filter ¶
type Filter struct { BlockedCategories []Category `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Filter) Descriptor
deprecated
func (*Filter) GetBlockedCategories ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type GetGlobalFilterRequest ¶
type GetGlobalFilterRequest struct {
// contains filtered or unexported fields
}
func (*GetGlobalFilterRequest) Descriptor
deprecated
func (*GetGlobalFilterRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGlobalFilterRequest.ProtoReflect.Descriptor instead.
func (*GetGlobalFilterRequest) ProtoMessage ¶
func (*GetGlobalFilterRequest) ProtoMessage()
func (*GetGlobalFilterRequest) ProtoReflect ¶
func (x *GetGlobalFilterRequest) ProtoReflect() protoreflect.Message
func (*GetGlobalFilterRequest) Reset ¶
func (x *GetGlobalFilterRequest) Reset()
func (*GetGlobalFilterRequest) String ¶
func (x *GetGlobalFilterRequest) String() string
type GetGlobalFilterResponse ¶
type GetGlobalFilterResponse struct { ActiveFilter *Filter `protobuf:"bytes,1,opt,name=active_filter,json=activeFilter,proto3" json:"active_filter,omitempty"` // contains filtered or unexported fields }
func (*GetGlobalFilterResponse) Descriptor
deprecated
func (*GetGlobalFilterResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGlobalFilterResponse.ProtoReflect.Descriptor instead.
func (*GetGlobalFilterResponse) GetActiveFilter ¶
func (x *GetGlobalFilterResponse) GetActiveFilter() *Filter
func (*GetGlobalFilterResponse) ProtoMessage ¶
func (*GetGlobalFilterResponse) ProtoMessage()
func (*GetGlobalFilterResponse) ProtoReflect ¶
func (x *GetGlobalFilterResponse) ProtoReflect() protoreflect.Message
func (*GetGlobalFilterResponse) Reset ¶
func (x *GetGlobalFilterResponse) Reset()
func (*GetGlobalFilterResponse) String ¶
func (x *GetGlobalFilterResponse) String() string
type SetFilterStatus ¶
type SetFilterStatus int32
const ( SetFilterStatus_SET_FILTER_STATUS_UNSPECIFIED SetFilterStatus = 0 // Filter has been successfully updated SetFilterStatus_SET_FILTER_STATUS_OK SetFilterStatus = 1 // Update failed SetFilterStatus_SET_FILTER_STATUS_ERROR SetFilterStatus = 2 )
func (SetFilterStatus) Descriptor ¶
func (SetFilterStatus) Descriptor() protoreflect.EnumDescriptor
func (SetFilterStatus) Enum ¶
func (x SetFilterStatus) Enum() *SetFilterStatus
func (SetFilterStatus) EnumDescriptor
deprecated
func (SetFilterStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SetFilterStatus.Descriptor instead.
func (SetFilterStatus) Number ¶
func (x SetFilterStatus) Number() protoreflect.EnumNumber
func (SetFilterStatus) String ¶
func (x SetFilterStatus) String() string
func (SetFilterStatus) Type ¶
func (SetFilterStatus) Type() protoreflect.EnumType
type SetGlobalFilterRequest ¶
type SetGlobalFilterRequest struct { Filter *Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*SetGlobalFilterRequest) Descriptor
deprecated
func (*SetGlobalFilterRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGlobalFilterRequest.ProtoReflect.Descriptor instead.
func (*SetGlobalFilterRequest) GetFilter ¶
func (x *SetGlobalFilterRequest) GetFilter() *Filter
func (*SetGlobalFilterRequest) ProtoMessage ¶
func (*SetGlobalFilterRequest) ProtoMessage()
func (*SetGlobalFilterRequest) ProtoReflect ¶
func (x *SetGlobalFilterRequest) ProtoReflect() protoreflect.Message
func (*SetGlobalFilterRequest) Reset ¶
func (x *SetGlobalFilterRequest) Reset()
func (*SetGlobalFilterRequest) String ¶
func (x *SetGlobalFilterRequest) String() string
type SetGlobalFilterResponse ¶
type SetGlobalFilterResponse struct { // The response status for setting the filter Status SetFilterStatus `protobuf:"varint,1,opt,name=status,proto3,enum=wgtwo.data.v1.SetFilterStatus" json:"status,omitempty"` // Human readable description provided in case of a unsuccessful update Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*SetGlobalFilterResponse) Descriptor
deprecated
func (*SetGlobalFilterResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetGlobalFilterResponse.ProtoReflect.Descriptor instead.
func (*SetGlobalFilterResponse) GetDescription ¶
func (x *SetGlobalFilterResponse) GetDescription() string
func (*SetGlobalFilterResponse) GetStatus ¶
func (x *SetGlobalFilterResponse) GetStatus() SetFilterStatus
func (*SetGlobalFilterResponse) ProtoMessage ¶
func (*SetGlobalFilterResponse) ProtoMessage()
func (*SetGlobalFilterResponse) ProtoReflect ¶
func (x *SetGlobalFilterResponse) ProtoReflect() protoreflect.Message
func (*SetGlobalFilterResponse) Reset ¶
func (x *SetGlobalFilterResponse) Reset()
func (*SetGlobalFilterResponse) String ¶
func (x *SetGlobalFilterResponse) String() string
type UnimplementedContentFilteringServiceServer ¶
type UnimplementedContentFilteringServiceServer struct { }
UnimplementedContentFilteringServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedContentFilteringServiceServer) GetGlobalFilter ¶
func (UnimplementedContentFilteringServiceServer) GetGlobalFilter(context.Context, *GetGlobalFilterRequest) (*GetGlobalFilterResponse, error)
func (UnimplementedContentFilteringServiceServer) SetGlobalFilter ¶
func (UnimplementedContentFilteringServiceServer) SetGlobalFilter(context.Context, *SetGlobalFilterRequest) (*SetGlobalFilterResponse, error)
type UnsafeContentFilteringServiceServer ¶
type UnsafeContentFilteringServiceServer interface {
// contains filtered or unexported methods
}
UnsafeContentFilteringServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContentFilteringServiceServer will result in compilation errors.