Documentation
¶
Index ¶
- Variables
- func RegisterGNMatcherServer(s *grpc.Server, srv GNMatcherServer)
- type GNMatcherClient
- type GNMatcherServer
- type MatchItem
- func (*MatchItem) Descriptor() ([]byte, []int)
- func (m *MatchItem) GetEditDistance() int32
- func (m *MatchItem) GetEditDistanceStem() int32
- func (m *MatchItem) GetId() string
- func (m *MatchItem) GetMatchStr() string
- func (*MatchItem) ProtoMessage()
- func (m *MatchItem) Reset()
- func (m *MatchItem) String() string
- func (m *MatchItem) XXX_DiscardUnknown()
- func (m *MatchItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MatchItem) XXX_Merge(src proto.Message)
- func (m *MatchItem) XXX_Size() int
- func (m *MatchItem) XXX_Unmarshal(b []byte) error
- type MatchType
- type Name
- func (*Name) Descriptor() ([]byte, []int)
- func (m *Name) GetName() string
- func (*Name) ProtoMessage()
- func (m *Name) Reset()
- func (m *Name) String() string
- func (m *Name) XXX_DiscardUnknown()
- func (m *Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Name) XXX_Merge(src proto.Message)
- func (m *Name) XXX_Size() int
- func (m *Name) XXX_Unmarshal(b []byte) error
- type Names
- func (*Names) Descriptor() ([]byte, []int)
- func (m *Names) GetNames() []string
- func (*Names) ProtoMessage()
- func (m *Names) Reset()
- func (m *Names) String() string
- func (m *Names) XXX_DiscardUnknown()
- func (m *Names) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Names) XXX_Merge(src proto.Message)
- func (m *Names) XXX_Size() int
- func (m *Names) XXX_Unmarshal(b []byte) error
- type Output
- func (*Output) Descriptor() ([]byte, []int)
- func (m *Output) GetResults() []*Result
- func (*Output) ProtoMessage()
- func (m *Output) Reset()
- func (m *Output) String() string
- func (m *Output) XXX_DiscardUnknown()
- func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Output) XXX_Merge(src proto.Message)
- func (m *Output) XXX_Size() int
- func (m *Output) XXX_Unmarshal(b []byte) error
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (m *Pong) GetValue() string
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) String() string
- func (m *Pong) XXX_DiscardUnknown()
- func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pong) XXX_Merge(src proto.Message)
- func (m *Pong) XXX_Size() int
- func (m *Pong) XXX_Unmarshal(b []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetId() string
- func (m *Result) GetMatchData() []*MatchItem
- func (m *Result) GetMatchType() MatchType
- func (m *Result) GetName() string
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) String() string
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetBuild() string
- func (m *Version) GetVersion() string
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
- type Void
- func (*Void) Descriptor() ([]byte, []int)
- func (*Void) ProtoMessage()
- func (m *Void) Reset()
- func (m *Void) String() string
- func (m *Void) XXX_DiscardUnknown()
- func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Void) XXX_Merge(src proto.Message)
- func (m *Void) XXX_Size() int
- func (m *Void) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MatchType_name = map[int32]string{
0: "NONE",
1: "CANONICAL",
2: "CANONICAL_FULL",
3: "VIRUS",
4: "FUZZY",
5: "PARTIAL",
6: "PARTIAL_FUZZY",
}
View Source
var MatchType_value = map[string]int32{
"NONE": 0,
"CANONICAL": 1,
"CANONICAL_FULL": 2,
"VIRUS": 3,
"FUZZY": 4,
"PARTIAL": 5,
"PARTIAL_FUZZY": 6,
}
Functions ¶
func RegisterGNMatcherServer ¶
func RegisterGNMatcherServer(s *grpc.Server, srv GNMatcherServer)
Types ¶
type GNMatcherClient ¶
type GNMatcherClient interface { Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Pong, error) Ver(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Version, error) MatchAry(ctx context.Context, in *Names, opts ...grpc.CallOption) (*Output, error) }
GNMatcherClient is the client API for GNMatcher service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGNMatcherClient ¶
func NewGNMatcherClient(cc *grpc.ClientConn) GNMatcherClient
type GNMatcherServer ¶
type GNMatcherServer interface { Ping(context.Context, *Void) (*Pong, error) Ver(context.Context, *Void) (*Version, error) MatchAry(context.Context, *Names) (*Output, error) }
GNMatcherServer is the server API for GNMatcher service.
type MatchItem ¶
type MatchItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MatchStr string `protobuf:"bytes,2,opt,name=match_str,json=matchStr,proto3" json:"match_str,omitempty"` EditDistance int32 `protobuf:"varint,3,opt,name=edit_distance,json=editDistance,proto3" json:"edit_distance,omitempty"` EditDistanceStem int32 `protobuf:"varint,4,opt,name=edit_distance_stem,json=editDistanceStem,proto3" json:"edit_distance_stem,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MatchItem) Descriptor ¶
func (*MatchItem) GetEditDistance ¶
func (*MatchItem) GetEditDistanceStem ¶
func (*MatchItem) GetMatchStr ¶
func (*MatchItem) ProtoMessage ¶
func (*MatchItem) ProtoMessage()
func (*MatchItem) XXX_DiscardUnknown ¶
func (m *MatchItem) XXX_DiscardUnknown()
func (*MatchItem) XXX_Marshal ¶
func (*MatchItem) XXX_Unmarshal ¶
type Name ¶
type Name struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Name) Descriptor ¶
func (*Name) ProtoMessage ¶
func (*Name) ProtoMessage()
func (*Name) XXX_DiscardUnknown ¶
func (m *Name) XXX_DiscardUnknown()
func (*Name) XXX_Unmarshal ¶
type Names ¶
type Names struct { Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Names) Descriptor ¶
func (*Names) ProtoMessage ¶
func (*Names) ProtoMessage()
func (*Names) XXX_DiscardUnknown ¶
func (m *Names) XXX_DiscardUnknown()
func (*Names) XXX_Marshal ¶
func (*Names) XXX_Unmarshal ¶
type Output ¶
type Output struct { Results []*Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Output) Descriptor ¶
func (*Output) GetResults ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) XXX_DiscardUnknown ¶
func (m *Output) XXX_DiscardUnknown()
func (*Output) XXX_Marshal ¶
func (*Output) XXX_Unmarshal ¶
type Pong ¶
type Pong struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pong) Descriptor ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Unmarshal ¶
type Result ¶
type Result struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` MatchType MatchType `protobuf:"varint,3,opt,name=match_type,json=matchType,proto3,enum=protob.MatchType" json:"match_type,omitempty"` MatchData []*MatchItem `protobuf:"bytes,4,rep,name=match_data,json=matchData,proto3" json:"match_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Result) Descriptor ¶
func (*Result) GetMatchData ¶
func (*Result) GetMatchType ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type Version ¶
type Version struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Build string `protobuf:"bytes,2,opt,name=build,proto3" json:"build,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Version) Descriptor ¶
func (*Version) GetVersion ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
type Void ¶
type Void struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Void) Descriptor ¶
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) XXX_DiscardUnknown ¶
func (m *Void) XXX_DiscardUnknown()
func (*Void) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.