Documentation ¶
Index ¶
- func RegisterSensitiveWordServer(s *grpc.Server, srv SensitiveWordServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type ExcludedSymbol
- func (*ExcludedSymbol) Descriptor() ([]byte, []int)
- func (m *ExcludedSymbol) GetExcludedSymbols() []byte
- func (*ExcludedSymbol) ProtoMessage()
- func (m *ExcludedSymbol) Reset()
- func (m *ExcludedSymbol) String() string
- func (m *ExcludedSymbol) XXX_DiscardUnknown()
- func (m *ExcludedSymbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExcludedSymbol) XXX_Merge(src proto.Message)
- func (m *ExcludedSymbol) XXX_Size() int
- func (m *ExcludedSymbol) XXX_Unmarshal(b []byte) error
- type SensitiveWord
- func (*SensitiveWord) Descriptor() ([]byte, []int)
- func (m *SensitiveWord) GetDelm() string
- func (m *SensitiveWord) GetSensitiveWords() []byte
- func (*SensitiveWord) ProtoMessage()
- func (m *SensitiveWord) Reset()
- func (m *SensitiveWord) String() string
- func (m *SensitiveWord) XXX_DiscardUnknown()
- func (m *SensitiveWord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SensitiveWord) XXX_Merge(src proto.Message)
- func (m *SensitiveWord) XXX_Size() int
- func (m *SensitiveWord) XXX_Unmarshal(b []byte) error
- type SensitiveWordClient
- type SensitiveWordServer
- type UnimplementedSensitiveWordServer
- func (*UnimplementedSensitiveWordServer) AddExcludedSymbol(ctx context.Context, req *ExcludedSymbol) (*ExcludedSymbol, error)
- func (*UnimplementedSensitiveWordServer) AddSensitiveWord(ctx context.Context, req *SensitiveWord) (*SensitiveWord, error)
- func (*UnimplementedSensitiveWordServer) QueryExcludedSymbol(ctx context.Context, req *Empty) (*ExcludedSymbol, error)
- func (*UnimplementedSensitiveWordServer) QuerySensitiveWord(ctx context.Context, req *Empty) (*SensitiveWord, error)
- func (*UnimplementedSensitiveWordServer) SetExcludedSymbol(ctx context.Context, req *ExcludedSymbol) (*ExcludedSymbol, error)
- func (*UnimplementedSensitiveWordServer) SetSensitiveWord(ctx context.Context, req *SensitiveWord) (*SensitiveWord, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSensitiveWordServer ¶
func RegisterSensitiveWordServer(s *grpc.Server, srv SensitiveWordServer)
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type ExcludedSymbol ¶
type ExcludedSymbol struct { // excludedSymbol ExcludedSymbols []byte `protobuf:"bytes,1,opt,name=excludedSymbols,proto3" json:"excludedSymbols,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExcludedSymbol) Descriptor ¶
func (*ExcludedSymbol) Descriptor() ([]byte, []int)
func (*ExcludedSymbol) GetExcludedSymbols ¶
func (m *ExcludedSymbol) GetExcludedSymbols() []byte
func (*ExcludedSymbol) ProtoMessage ¶
func (*ExcludedSymbol) ProtoMessage()
func (*ExcludedSymbol) Reset ¶
func (m *ExcludedSymbol) Reset()
func (*ExcludedSymbol) String ¶
func (m *ExcludedSymbol) String() string
func (*ExcludedSymbol) XXX_DiscardUnknown ¶
func (m *ExcludedSymbol) XXX_DiscardUnknown()
func (*ExcludedSymbol) XXX_Marshal ¶
func (m *ExcludedSymbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExcludedSymbol) XXX_Merge ¶
func (m *ExcludedSymbol) XXX_Merge(src proto.Message)
func (*ExcludedSymbol) XXX_Size ¶
func (m *ExcludedSymbol) XXX_Size() int
func (*ExcludedSymbol) XXX_Unmarshal ¶
func (m *ExcludedSymbol) XXX_Unmarshal(b []byte) error
type SensitiveWord ¶
type SensitiveWord struct { // sensitiveWord SensitiveWords []byte `protobuf:"bytes,1,opt,name=sensitiveWords,proto3" json:"sensitiveWords,omitempty"` // sensitiveWord delm Delm string `protobuf:"bytes,2,opt,name=delm,proto3" json:"delm,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SensitiveWord) Descriptor ¶
func (*SensitiveWord) Descriptor() ([]byte, []int)
func (*SensitiveWord) GetDelm ¶
func (m *SensitiveWord) GetDelm() string
func (*SensitiveWord) GetSensitiveWords ¶
func (m *SensitiveWord) GetSensitiveWords() []byte
func (*SensitiveWord) ProtoMessage ¶
func (*SensitiveWord) ProtoMessage()
func (*SensitiveWord) Reset ¶
func (m *SensitiveWord) Reset()
func (*SensitiveWord) String ¶
func (m *SensitiveWord) String() string
func (*SensitiveWord) XXX_DiscardUnknown ¶
func (m *SensitiveWord) XXX_DiscardUnknown()
func (*SensitiveWord) XXX_Marshal ¶
func (m *SensitiveWord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SensitiveWord) XXX_Merge ¶
func (m *SensitiveWord) XXX_Merge(src proto.Message)
func (*SensitiveWord) XXX_Size ¶
func (m *SensitiveWord) XXX_Size() int
func (*SensitiveWord) XXX_Unmarshal ¶
func (m *SensitiveWord) XXX_Unmarshal(b []byte) error
type SensitiveWordClient ¶
type SensitiveWordClient interface { QuerySensitiveWord(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SensitiveWord, error) AddSensitiveWord(ctx context.Context, in *SensitiveWord, opts ...grpc.CallOption) (*SensitiveWord, error) SetSensitiveWord(ctx context.Context, in *SensitiveWord, opts ...grpc.CallOption) (*SensitiveWord, error) QueryExcludedSymbol(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ExcludedSymbol, error) AddExcludedSymbol(ctx context.Context, in *ExcludedSymbol, opts ...grpc.CallOption) (*ExcludedSymbol, error) SetExcludedSymbol(ctx context.Context, in *ExcludedSymbol, opts ...grpc.CallOption) (*ExcludedSymbol, error) }
SensitiveWordClient is the client API for SensitiveWord service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSensitiveWordClient ¶
func NewSensitiveWordClient(cc *grpc.ClientConn) SensitiveWordClient
type SensitiveWordServer ¶
type SensitiveWordServer interface { QuerySensitiveWord(context.Context, *Empty) (*SensitiveWord, error) AddSensitiveWord(context.Context, *SensitiveWord) (*SensitiveWord, error) SetSensitiveWord(context.Context, *SensitiveWord) (*SensitiveWord, error) QueryExcludedSymbol(context.Context, *Empty) (*ExcludedSymbol, error) AddExcludedSymbol(context.Context, *ExcludedSymbol) (*ExcludedSymbol, error) SetExcludedSymbol(context.Context, *ExcludedSymbol) (*ExcludedSymbol, error) }
SensitiveWordServer is the server API for SensitiveWord service.
type UnimplementedSensitiveWordServer ¶
type UnimplementedSensitiveWordServer struct { }
UnimplementedSensitiveWordServer can be embedded to have forward compatible implementations.
func (*UnimplementedSensitiveWordServer) AddExcludedSymbol ¶
func (*UnimplementedSensitiveWordServer) AddExcludedSymbol(ctx context.Context, req *ExcludedSymbol) (*ExcludedSymbol, error)
func (*UnimplementedSensitiveWordServer) AddSensitiveWord ¶
func (*UnimplementedSensitiveWordServer) AddSensitiveWord(ctx context.Context, req *SensitiveWord) (*SensitiveWord, error)
func (*UnimplementedSensitiveWordServer) QueryExcludedSymbol ¶
func (*UnimplementedSensitiveWordServer) QueryExcludedSymbol(ctx context.Context, req *Empty) (*ExcludedSymbol, error)
func (*UnimplementedSensitiveWordServer) QuerySensitiveWord ¶
func (*UnimplementedSensitiveWordServer) QuerySensitiveWord(ctx context.Context, req *Empty) (*SensitiveWord, error)
func (*UnimplementedSensitiveWordServer) SetExcludedSymbol ¶
func (*UnimplementedSensitiveWordServer) SetExcludedSymbol(ctx context.Context, req *ExcludedSymbol) (*ExcludedSymbol, error)
func (*UnimplementedSensitiveWordServer) SetSensitiveWord ¶
func (*UnimplementedSensitiveWordServer) SetSensitiveWord(ctx context.Context, req *SensitiveWord) (*SensitiveWord, error)
Click to show internal directories.
Click to hide internal directories.