Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterContentFilteringServiceServer(s grpc.ServiceRegistrar, srv ContentFilteringServiceServer)
- type BlockModeIp
- type Category
- type ContentFilteringServiceClient
- type ContentFilteringServiceServer
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (m *Filter) GetBlockMode() isFilter_BlockMode
- func (x *Filter) GetBlockModeIp() *BlockModeIp
- func (x *Filter) GetBlockedCategories() []Category
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- type Filter_BlockModeIp
- 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 ¶
const ( ContentFilteringService_SetGlobalFilter_FullMethodName = "/wgtwo.data.v1.ContentFilteringService/SetGlobalFilter" ContentFilteringService_GetGlobalFilter_FullMethodName = "/wgtwo.data.v1.ContentFilteringService/GetGlobalFilter" )
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", 2: "CATEGORY_ADULT", 4: "CATEGORY_ALCOHOL_AND_TOBACCO", 31: "CATEGORY_DATING_AND_PERSONALS", 10: "CATEGORY_DECEPTIVE", 11: "CATEGORY_DRUGS", 16: "CATEGORY_GAMBLING", 19: "CATEGORY_HACKING", 20: "CATEGORY_HATE", 23: "CATEGORY_ILLEGAL_CONTENT", 26: "CATEGORY_MALICIOUS", 28: "CATEGORY_MESSAGE_BOARDS_AND_FORUMS", 30: "CATEGORY_PARKED", 32: "CATEGORY_PROXY_AND_FILTER_AVOIDANCE", 46: "CATEGORY_WEAPONS", } Category_value = map[string]int32{ "CATEGORY_UNSPECIFIED": 0, "CATEGORY_ADULT": 2, "CATEGORY_ALCOHOL_AND_TOBACCO": 4, "CATEGORY_DATING_AND_PERSONALS": 31, "CATEGORY_DECEPTIVE": 10, "CATEGORY_DRUGS": 11, "CATEGORY_GAMBLING": 16, "CATEGORY_HACKING": 19, "CATEGORY_HATE": 20, "CATEGORY_ILLEGAL_CONTENT": 23, "CATEGORY_MALICIOUS": 26, "CATEGORY_MESSAGE_BOARDS_AND_FORUMS": 28, "CATEGORY_PARKED": 30, "CATEGORY_PROXY_AND_FILTER_AVOIDANCE": 32, "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 BlockModeIp ¶
type BlockModeIp struct { Ipv4 *v1.IpAddressV4 `protobuf:"bytes,1,opt,name=ipv4,proto3" json:"ipv4,omitempty"` // contains filtered or unexported fields }
func (*BlockModeIp) Descriptor
deprecated
func (*BlockModeIp) Descriptor() ([]byte, []int)
Deprecated: Use BlockModeIp.ProtoReflect.Descriptor instead.
func (*BlockModeIp) GetIpv4 ¶
func (x *BlockModeIp) GetIpv4() *v1.IpAddressV4
func (*BlockModeIp) ProtoMessage ¶
func (*BlockModeIp) ProtoMessage()
func (*BlockModeIp) ProtoReflect ¶
func (x *BlockModeIp) ProtoReflect() protoreflect.Message
func (*BlockModeIp) Reset ¶
func (x *BlockModeIp) Reset()
func (*BlockModeIp) String ¶
func (x *BlockModeIp) String() string
type Category ¶
type Category int32
const ( // Not specified // Using this category will be rejected with the error INVALID_ARGUMENT Category_CATEGORY_UNSPECIFIED Category = 0 // Adult // Sexually explicit content Category_CATEGORY_ADULT Category = 2 // Alcohol and tobacco // Sites that sell and discuss consumption Category_CATEGORY_ALCOHOL_AND_TOBACCO Category = 4 // Dating sites Category_CATEGORY_DATING_AND_PERSONALS Category = 31 // Sites pretending to be another page to gather information Category_CATEGORY_DECEPTIVE Category = 10 // Sites that sell and discuss consumption of drugs (excluding alcohol and tobacco) Category_CATEGORY_DRUGS Category = 11 // Gambling Category_CATEGORY_GAMBLING Category = 16 // Hacking and cracking Category_CATEGORY_HACKING Category = 19 // Hate and terrorism Category_CATEGORY_HATE Category = 20 // Illegal content Category_CATEGORY_ILLEGAL_CONTENT Category = 23 // Malicious Category_CATEGORY_MALICIOUS Category = 26 // Message boards and forums Category_CATEGORY_MESSAGE_BOARDS_AND_FORUMS Category = 28 // Parked sites and domains Category_CATEGORY_PARKED Category = 30 // Proxy and filter avoidance Category_CATEGORY_PROXY_AND_FILTER_AVOIDANCE Category = 32 // Weapons 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 { // Set filter for all subscriptions using the product SetGlobalFilter(ctx context.Context, in *SetGlobalFilterRequest, opts ...grpc.CallOption) (*SetGlobalFilterResponse, error) // Get the current configured global filter 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 { // Set filter for all subscriptions using the product SetGlobalFilter(context.Context, *SetGlobalFilterRequest) (*SetGlobalFilterResponse, error) // Get the current configured global filter 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 */ // The ip to redirect to if the category is blocked // // Types that are assignable to BlockMode: // // *Filter_BlockModeIp BlockMode isFilter_BlockMode `protobuf_oneof:"block_mode"` // contains filtered or unexported fields }
func (*Filter) Descriptor
deprecated
func (*Filter) GetBlockMode ¶
func (m *Filter) GetBlockMode() isFilter_BlockMode
func (*Filter) GetBlockModeIp ¶
func (x *Filter) GetBlockModeIp() *BlockModeIp
func (*Filter) GetBlockedCategories ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type Filter_BlockModeIp ¶
type Filter_BlockModeIp struct {
BlockModeIp *BlockModeIp `protobuf:"bytes,2,opt,name=block_mode_ip,json=blockModeIp,proto3,oneof"`
}
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 { // The filter to enable // Not setting a filter will disable the current filter 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.