matchstore

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_matchstore_matchstore_proto protoreflect.FileDescriptor
View Source
var Matchstore_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "matchstore.Matchstore",
	HandlerType: (*MatchstoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FetchMatches",
			Handler:    _Matchstore_FetchMatches_Handler,
		},
		{
			MethodName: "FetchMismatches",
			Handler:    _Matchstore_FetchMismatches_Handler,
		},
		{
			MethodName: "FetchMatchesCount",
			Handler:    _Matchstore_FetchMatchesCount_Handler,
		},
		{
			MethodName: "FetchMismatchesCount",
			Handler:    _Matchstore_FetchMismatchesCount_Handler,
		},
		{
			MethodName: "RemoveMatches",
			Handler:    _Matchstore_RemoveMatches_Handler,
		},
		{
			MethodName: "RemoveMismatches",
			Handler:    _Matchstore_RemoveMismatches_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "matchstore/matchstore.proto",
}

Matchstore_ServiceDesc is the grpc.ServiceDesc for Matchstore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func NewGrpcMatchstore

func NewGrpcMatchstore(addresses []string, serverPort int, capacity uint16, logLevel string) (matches.Matchstore, error)

NewGrpcMatchstore creates a new distributed matches.Matchstore

func RegisterMatchstoreServer

func RegisterMatchstoreServer(s grpc.ServiceRegistrar, srv MatchstoreServer)

Types

type ActualRequest

type ActualRequest struct {
	Method string                  `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Url    string                  `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Header map[string]*HeaderValue `` /* 153-byte string literal not displayed */
	Host   string                  `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*ActualRequest) Descriptor deprecated

func (*ActualRequest) Descriptor() ([]byte, []int)

Deprecated: Use ActualRequest.ProtoReflect.Descriptor instead.

func (*ActualRequest) GetHeader

func (x *ActualRequest) GetHeader() map[string]*HeaderValue

func (*ActualRequest) GetHost

func (x *ActualRequest) GetHost() string

func (*ActualRequest) GetMethod

func (x *ActualRequest) GetMethod() string

func (*ActualRequest) GetUrl

func (x *ActualRequest) GetUrl() string

func (*ActualRequest) ProtoMessage

func (*ActualRequest) ProtoMessage()

func (*ActualRequest) ProtoReflect

func (x *ActualRequest) ProtoReflect() protoreflect.Message

func (*ActualRequest) Reset

func (x *ActualRequest) Reset()

func (*ActualRequest) String

func (x *ActualRequest) String() string

type ActualResponse

type ActualResponse struct {
	StatusCode int32                   `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	Header     map[string]*HeaderValue `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ActualResponse) Descriptor deprecated

func (*ActualResponse) Descriptor() ([]byte, []int)

Deprecated: Use ActualResponse.ProtoReflect.Descriptor instead.

func (*ActualResponse) GetHeader

func (x *ActualResponse) GetHeader() map[string]*HeaderValue

func (*ActualResponse) GetStatusCode

func (x *ActualResponse) GetStatusCode() int32

func (*ActualResponse) ProtoMessage

func (*ActualResponse) ProtoMessage()

func (*ActualResponse) ProtoReflect

func (x *ActualResponse) ProtoReflect() protoreflect.Message

func (*ActualResponse) Reset

func (x *ActualResponse) Reset()

func (*ActualResponse) String

func (x *ActualResponse) String() string

type AddAllResponse

type AddAllResponse struct {
	Locked bool `protobuf:"varint,1,opt,name=locked,proto3" json:"locked,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAllResponse) Descriptor deprecated

func (*AddAllResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddAllResponse.ProtoReflect.Descriptor instead.

func (*AddAllResponse) GetLocked

func (x *AddAllResponse) GetLocked() bool

func (*AddAllResponse) ProtoMessage

func (*AddAllResponse) ProtoMessage()

func (*AddAllResponse) ProtoReflect

func (x *AddAllResponse) ProtoReflect() protoreflect.Message

func (*AddAllResponse) Reset

func (x *AddAllResponse) Reset()

func (*AddAllResponse) String

func (x *AddAllResponse) String() string

type EndPointRequest

type EndPointRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*EndPointRequest) Descriptor deprecated

func (*EndPointRequest) Descriptor() ([]byte, []int)

Deprecated: Use EndPointRequest.ProtoReflect.Descriptor instead.

func (*EndPointRequest) GetId

func (x *EndPointRequest) GetId() string

func (*EndPointRequest) ProtoMessage

func (*EndPointRequest) ProtoMessage()

func (*EndPointRequest) ProtoReflect

func (x *EndPointRequest) ProtoReflect() protoreflect.Message

func (*EndPointRequest) Reset

func (x *EndPointRequest) Reset()

func (*EndPointRequest) String

func (x *EndPointRequest) String() string

type HeaderValue

type HeaderValue struct {
	Val []string `protobuf:"bytes,1,rep,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderValue) Descriptor deprecated

func (*HeaderValue) Descriptor() ([]byte, []int)

Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.

func (*HeaderValue) GetVal

func (x *HeaderValue) GetVal() []string

func (*HeaderValue) ProtoMessage

func (*HeaderValue) ProtoMessage()

func (*HeaderValue) ProtoReflect

func (x *HeaderValue) ProtoReflect() protoreflect.Message

func (*HeaderValue) Reset

func (x *HeaderValue) Reset()

func (*HeaderValue) String

func (x *HeaderValue) String() string

type Match

type Match struct {
	EndpointId     string                 `protobuf:"bytes,1,opt,name=endpointId,proto3" json:"endpointId,omitempty"`
	Timestamp      *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ActualRequest  *ActualRequest         `protobuf:"bytes,3,opt,name=actualRequest,proto3" json:"actualRequest,omitempty"`
	ActualResponse *ActualResponse        `protobuf:"bytes,4,opt,name=actualResponse,proto3" json:"actualResponse,omitempty"`
	// contains filtered or unexported fields
}

func (*Match) Descriptor deprecated

func (*Match) Descriptor() ([]byte, []int)

Deprecated: Use Match.ProtoReflect.Descriptor instead.

func (*Match) GetActualRequest

func (x *Match) GetActualRequest() *ActualRequest

func (*Match) GetActualResponse

func (x *Match) GetActualResponse() *ActualResponse

func (*Match) GetEndpointId

func (x *Match) GetEndpointId() string

func (*Match) GetTimestamp

func (x *Match) GetTimestamp() *timestamppb.Timestamp

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect

func (x *Match) ProtoReflect() protoreflect.Message

func (*Match) Reset

func (x *Match) Reset()

func (*Match) String

func (x *Match) String() string

type MatchesCountResponse

type MatchesCountResponse struct {
	MatchesCount uint64 `protobuf:"varint,1,opt,name=matchesCount,proto3" json:"matchesCount,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchesCountResponse) Descriptor deprecated

func (*MatchesCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use MatchesCountResponse.ProtoReflect.Descriptor instead.

func (*MatchesCountResponse) GetMatchesCount

func (x *MatchesCountResponse) GetMatchesCount() uint64

func (*MatchesCountResponse) ProtoMessage

func (*MatchesCountResponse) ProtoMessage()

func (*MatchesCountResponse) ProtoReflect

func (x *MatchesCountResponse) ProtoReflect() protoreflect.Message

func (*MatchesCountResponse) Reset

func (x *MatchesCountResponse) Reset()

func (*MatchesCountResponse) String

func (x *MatchesCountResponse) String() string

type MatchesResponse

type MatchesResponse struct {
	Matches []*Match `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchesResponse) Descriptor deprecated

func (*MatchesResponse) Descriptor() ([]byte, []int)

Deprecated: Use MatchesResponse.ProtoReflect.Descriptor instead.

func (*MatchesResponse) GetMatches

func (x *MatchesResponse) GetMatches() []*Match

func (*MatchesResponse) ProtoMessage

func (*MatchesResponse) ProtoMessage()

func (*MatchesResponse) ProtoReflect

func (x *MatchesResponse) ProtoReflect() protoreflect.Message

func (*MatchesResponse) Reset

func (x *MatchesResponse) Reset()

func (*MatchesResponse) String

func (x *MatchesResponse) String() string

type MatchstoreClient

type MatchstoreClient interface {
	FetchMatches(ctx context.Context, in *EndPointRequest, opts ...grpc.CallOption) (*MatchesResponse, error)
	FetchMismatches(ctx context.Context, in *MismatchRequest, opts ...grpc.CallOption) (*MismatchesResponse, error)
	FetchMatchesCount(ctx context.Context, in *EndPointRequest, opts ...grpc.CallOption) (*MatchesCountResponse, error)
	FetchMismatchesCount(ctx context.Context, in *MismatchRequest, opts ...grpc.CallOption) (*MismatchesCountResponse, error)
	RemoveMatches(ctx context.Context, in *EndPointRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	RemoveMismatches(ctx context.Context, in *MismatchRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
}

MatchstoreClient is the client API for Matchstore 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 NewMatchstoreClient

func NewMatchstoreClient(cc grpc.ClientConnInterface) MatchstoreClient

type MatchstoreServer

type MatchstoreServer interface {
	FetchMatches(context.Context, *EndPointRequest) (*MatchesResponse, error)
	FetchMismatches(context.Context, *MismatchRequest) (*MismatchesResponse, error)
	FetchMatchesCount(context.Context, *EndPointRequest) (*MatchesCountResponse, error)
	FetchMismatchesCount(context.Context, *MismatchRequest) (*MismatchesCountResponse, error)
	RemoveMatches(context.Context, *EndPointRequest) (*RemoveResponse, error)
	RemoveMismatches(context.Context, *MismatchRequest) (*RemoveResponse, error)
	// contains filtered or unexported methods
}

MatchstoreServer is the server API for Matchstore service. All implementations must embed UnimplementedMatchstoreServer for forward compatibility

type Mismatch

type Mismatch struct {
	MismatchDetails string                 `protobuf:"bytes,1,opt,name=mismatchDetails,proto3" json:"mismatchDetails,omitempty"`
	Timestamp       *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ActualRequest   *ActualRequest         `protobuf:"bytes,3,opt,name=actualRequest,proto3" json:"actualRequest,omitempty"`
	// contains filtered or unexported fields
}

func (*Mismatch) Descriptor deprecated

func (*Mismatch) Descriptor() ([]byte, []int)

Deprecated: Use Mismatch.ProtoReflect.Descriptor instead.

func (*Mismatch) GetActualRequest

func (x *Mismatch) GetActualRequest() *ActualRequest

func (*Mismatch) GetMismatchDetails

func (x *Mismatch) GetMismatchDetails() string

func (*Mismatch) GetTimestamp

func (x *Mismatch) GetTimestamp() *timestamppb.Timestamp

func (*Mismatch) ProtoMessage

func (*Mismatch) ProtoMessage()

func (*Mismatch) ProtoReflect

func (x *Mismatch) ProtoReflect() protoreflect.Message

func (*Mismatch) Reset

func (x *Mismatch) Reset()

func (*Mismatch) String

func (x *Mismatch) String() string

type MismatchRequest

type MismatchRequest struct {
	// contains filtered or unexported fields
}

func (*MismatchRequest) Descriptor deprecated

func (*MismatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use MismatchRequest.ProtoReflect.Descriptor instead.

func (*MismatchRequest) ProtoMessage

func (*MismatchRequest) ProtoMessage()

func (*MismatchRequest) ProtoReflect

func (x *MismatchRequest) ProtoReflect() protoreflect.Message

func (*MismatchRequest) Reset

func (x *MismatchRequest) Reset()

func (*MismatchRequest) String

func (x *MismatchRequest) String() string

type MismatchesCountResponse

type MismatchesCountResponse struct {
	MismatchesCount uint64 `protobuf:"varint,1,opt,name=mismatchesCount,proto3" json:"mismatchesCount,omitempty"`
	// contains filtered or unexported fields
}

func (*MismatchesCountResponse) Descriptor deprecated

func (*MismatchesCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use MismatchesCountResponse.ProtoReflect.Descriptor instead.

func (*MismatchesCountResponse) GetMismatchesCount

func (x *MismatchesCountResponse) GetMismatchesCount() uint64

func (*MismatchesCountResponse) ProtoMessage

func (*MismatchesCountResponse) ProtoMessage()

func (*MismatchesCountResponse) ProtoReflect

func (x *MismatchesCountResponse) ProtoReflect() protoreflect.Message

func (*MismatchesCountResponse) Reset

func (x *MismatchesCountResponse) Reset()

func (*MismatchesCountResponse) String

func (x *MismatchesCountResponse) String() string

type MismatchesResponse

type MismatchesResponse struct {
	Mismatches []*Mismatch `protobuf:"bytes,1,rep,name=mismatches,proto3" json:"mismatches,omitempty"`
	// contains filtered or unexported fields
}

func (*MismatchesResponse) Descriptor deprecated

func (*MismatchesResponse) Descriptor() ([]byte, []int)

Deprecated: Use MismatchesResponse.ProtoReflect.Descriptor instead.

func (*MismatchesResponse) GetMismatches

func (x *MismatchesResponse) GetMismatches() []*Mismatch

func (*MismatchesResponse) ProtoMessage

func (*MismatchesResponse) ProtoMessage()

func (*MismatchesResponse) ProtoReflect

func (x *MismatchesResponse) ProtoReflect() protoreflect.Message

func (*MismatchesResponse) Reset

func (x *MismatchesResponse) Reset()

func (*MismatchesResponse) String

func (x *MismatchesResponse) String() string

type RemoveResponse

type RemoveResponse struct {
	// contains filtered or unexported fields
}

func (*RemoveResponse) Descriptor deprecated

func (*RemoveResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) ProtoReflect

func (x *RemoveResponse) ProtoReflect() protoreflect.Message

func (*RemoveResponse) Reset

func (x *RemoveResponse) Reset()

func (*RemoveResponse) String

func (x *RemoveResponse) String() string

type UnimplementedMatchstoreServer

type UnimplementedMatchstoreServer struct {
}

UnimplementedMatchstoreServer must be embedded to have forward compatible implementations.

func (UnimplementedMatchstoreServer) FetchMatches

func (UnimplementedMatchstoreServer) FetchMatchesCount

func (UnimplementedMatchstoreServer) FetchMismatches

func (UnimplementedMatchstoreServer) FetchMismatchesCount

func (UnimplementedMatchstoreServer) RemoveMatches

func (UnimplementedMatchstoreServer) RemoveMismatches

type UnsafeMatchstoreServer

type UnsafeMatchstoreServer interface {
	// contains filtered or unexported methods
}

UnsafeMatchstoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MatchstoreServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL