pb

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 17 Imported by: 60

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var FunctionConfig_Type_name = map[int32]string{
	0: "GRPC",
	1: "REST",
}
View Source
var FunctionConfig_Type_value = map[string]int32{
	"GRPC": 0,
	"REST": 1,
}

Functions

func RegisterBackendServiceHandler added in v0.9.0

func RegisterBackendServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBackendServiceHandler registers the http handlers for service BackendService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBackendServiceHandlerClient added in v0.9.0

func RegisterBackendServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackendServiceClient) error

RegisterBackendServiceHandlerClient registers the http handlers for service BackendService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BackendServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BackendServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BackendServiceClient" to call the correct interceptors.

func RegisterBackendServiceHandlerFromEndpoint added in v0.9.0

func RegisterBackendServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterBackendServiceHandlerFromEndpoint is same as RegisterBackendServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterBackendServiceHandlerServer added in v0.9.0

func RegisterBackendServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BackendServiceServer) error

RegisterBackendServiceHandlerServer registers the http handlers for service BackendService to "mux". UnaryRPC :call BackendServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterBackendServiceServer added in v0.9.0

func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer)

func RegisterEvaluatorHandler

func RegisterEvaluatorHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEvaluatorHandler registers the http handlers for service Evaluator to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEvaluatorHandlerClient

func RegisterEvaluatorHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EvaluatorClient) error

RegisterEvaluatorHandlerClient registers the http handlers for service Evaluator to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EvaluatorClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EvaluatorClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EvaluatorClient" to call the correct interceptors.

func RegisterEvaluatorHandlerFromEndpoint

func RegisterEvaluatorHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEvaluatorHandlerFromEndpoint is same as RegisterEvaluatorHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEvaluatorHandlerServer added in v0.8.0

func RegisterEvaluatorHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EvaluatorServer) error

RegisterEvaluatorHandlerServer registers the http handlers for service Evaluator to "mux". UnaryRPC :call EvaluatorServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterEvaluatorServer

func RegisterEvaluatorServer(s *grpc.Server, srv EvaluatorServer)

func RegisterFrontendServiceHandler added in v0.9.0

func RegisterFrontendServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFrontendServiceHandler registers the http handlers for service FrontendService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFrontendServiceHandlerClient added in v0.9.0

func RegisterFrontendServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FrontendServiceClient) error

RegisterFrontendServiceHandlerClient registers the http handlers for service FrontendService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FrontendServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FrontendServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FrontendServiceClient" to call the correct interceptors.

func RegisterFrontendServiceHandlerFromEndpoint added in v0.9.0

func RegisterFrontendServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFrontendServiceHandlerFromEndpoint is same as RegisterFrontendServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFrontendServiceHandlerServer added in v0.9.0

func RegisterFrontendServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FrontendServiceServer) error

RegisterFrontendServiceHandlerServer registers the http handlers for service FrontendService to "mux". UnaryRPC :call FrontendServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterFrontendServiceServer added in v0.9.0

func RegisterFrontendServiceServer(s *grpc.Server, srv FrontendServiceServer)

func RegisterMatchFunctionHandler

func RegisterMatchFunctionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMatchFunctionHandler registers the http handlers for service MatchFunction to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMatchFunctionHandlerClient

func RegisterMatchFunctionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MatchFunctionClient) error

RegisterMatchFunctionHandlerClient registers the http handlers for service MatchFunction to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MatchFunctionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MatchFunctionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MatchFunctionClient" to call the correct interceptors.

func RegisterMatchFunctionHandlerFromEndpoint

func RegisterMatchFunctionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMatchFunctionHandlerFromEndpoint is same as RegisterMatchFunctionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMatchFunctionHandlerServer added in v0.8.0

func RegisterMatchFunctionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MatchFunctionServer) error

RegisterMatchFunctionHandlerServer registers the http handlers for service MatchFunction to "mux". UnaryRPC :call MatchFunctionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterMatchFunctionServer

func RegisterMatchFunctionServer(s *grpc.Server, srv MatchFunctionServer)

func RegisterQueryServiceHandler added in v0.9.0

func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryServiceHandlerClient added in v0.9.0

func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error

RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.

func RegisterQueryServiceHandlerFromEndpoint added in v0.9.0

func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryServiceHandlerServer added in v0.9.0

func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error

RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterQueryServiceServer added in v0.9.0

func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer)

Types

type AssignTicketsRequest

type AssignTicketsRequest struct {
	// TicketIds is a list of strings representing Open Match generated Ids which apply to an Assignment.
	TicketIds []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"`
	// An Assignment specifies game connection related information to be associated with the TicketIds.
	Assignment           *Assignment `protobuf:"bytes,2,opt,name=assignment,proto3" json:"assignment,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*AssignTicketsRequest) Descriptor

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

func (*AssignTicketsRequest) GetAssignment

func (m *AssignTicketsRequest) GetAssignment() *Assignment

func (*AssignTicketsRequest) GetTicketIds

func (m *AssignTicketsRequest) GetTicketIds() []string

func (*AssignTicketsRequest) ProtoMessage

func (*AssignTicketsRequest) ProtoMessage()

func (*AssignTicketsRequest) Reset

func (m *AssignTicketsRequest) Reset()

func (*AssignTicketsRequest) String

func (m *AssignTicketsRequest) String() string

func (*AssignTicketsRequest) XXX_DiscardUnknown

func (m *AssignTicketsRequest) XXX_DiscardUnknown()

func (*AssignTicketsRequest) XXX_Marshal

func (m *AssignTicketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssignTicketsRequest) XXX_Merge

func (m *AssignTicketsRequest) XXX_Merge(src proto.Message)

func (*AssignTicketsRequest) XXX_Size

func (m *AssignTicketsRequest) XXX_Size() int

func (*AssignTicketsRequest) XXX_Unmarshal

func (m *AssignTicketsRequest) XXX_Unmarshal(b []byte) error

type AssignTicketsResponse

type AssignTicketsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AssignTicketsResponse) Descriptor

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

func (*AssignTicketsResponse) ProtoMessage

func (*AssignTicketsResponse) ProtoMessage()

func (*AssignTicketsResponse) Reset

func (m *AssignTicketsResponse) Reset()

func (*AssignTicketsResponse) String

func (m *AssignTicketsResponse) String() string

func (*AssignTicketsResponse) XXX_DiscardUnknown

func (m *AssignTicketsResponse) XXX_DiscardUnknown()

func (*AssignTicketsResponse) XXX_Marshal

func (m *AssignTicketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssignTicketsResponse) XXX_Merge

func (m *AssignTicketsResponse) XXX_Merge(src proto.Message)

func (*AssignTicketsResponse) XXX_Size

func (m *AssignTicketsResponse) XXX_Size() int

func (*AssignTicketsResponse) XXX_Unmarshal

func (m *AssignTicketsResponse) XXX_Unmarshal(b []byte) error

type Assignment

type Assignment struct {
	// Connection information for this Assignment.
	Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	// Customized information not inspected by Open Match, to be used by the match
	// making function, evaluator, and components making calls to Open Match.
	// Optional, depending on the requirements of the connected systems.
	Extensions           map[string]*any.Any `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

An Assignment represents a game server assignment associated with a Ticket. Open match does not require or inspect any fields on assignment.

func (*Assignment) Descriptor

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

func (*Assignment) GetConnection

func (m *Assignment) GetConnection() string

func (*Assignment) GetExtensions added in v0.8.0

func (m *Assignment) GetExtensions() map[string]*any.Any

func (*Assignment) ProtoMessage

func (*Assignment) ProtoMessage()

func (*Assignment) Reset

func (m *Assignment) Reset()

func (*Assignment) String

func (m *Assignment) String() string

func (*Assignment) XXX_DiscardUnknown

func (m *Assignment) XXX_DiscardUnknown()

func (*Assignment) XXX_Marshal

func (m *Assignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Assignment) XXX_Merge

func (m *Assignment) XXX_Merge(src proto.Message)

func (*Assignment) XXX_Size

func (m *Assignment) XXX_Size() int

func (*Assignment) XXX_Unmarshal

func (m *Assignment) XXX_Unmarshal(b []byte) error

type BackendServiceClient added in v0.9.0

type BackendServiceClient interface {
	// FetchMatches triggers a MatchFunction with the specified MatchProfile and returns a set of match proposals that
	// match the description of that MatchProfile.
	// FetchMatches immediately returns an error if it encounters any execution failures.
	FetchMatches(ctx context.Context, in *FetchMatchesRequest, opts ...grpc.CallOption) (BackendService_FetchMatchesClient, error)
	// AssignTickets overwrites the Assignment field of the input TicketIds.
	AssignTickets(ctx context.Context, in *AssignTicketsRequest, opts ...grpc.CallOption) (*AssignTicketsResponse, error)
	// ReleaseTickets removes the submitted tickets from the list that prevents tickets
	// that are awaiting assignment from appearing in MMF queries, effectively putting them back into
	// the matchmaking pool
	//
	// BETA FEATURE WARNING:  This call and the associated Request and Response
	// messages are not finalized and still subject to possible change or removal.
	ReleaseTickets(ctx context.Context, in *ReleaseTicketsRequest, opts ...grpc.CallOption) (*ReleaseTicketsResponse, error)
}

BackendServiceClient is the client API for BackendService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBackendServiceClient added in v0.9.0

func NewBackendServiceClient(cc *grpc.ClientConn) BackendServiceClient

type BackendServiceServer added in v0.9.0

type BackendServiceServer interface {
	// FetchMatches triggers a MatchFunction with the specified MatchProfile and returns a set of match proposals that
	// match the description of that MatchProfile.
	// FetchMatches immediately returns an error if it encounters any execution failures.
	FetchMatches(*FetchMatchesRequest, BackendService_FetchMatchesServer) error
	// AssignTickets overwrites the Assignment field of the input TicketIds.
	AssignTickets(context.Context, *AssignTicketsRequest) (*AssignTicketsResponse, error)
	// ReleaseTickets removes the submitted tickets from the list that prevents tickets
	// that are awaiting assignment from appearing in MMF queries, effectively putting them back into
	// the matchmaking pool
	//
	// BETA FEATURE WARNING:  This call and the associated Request and Response
	// messages are not finalized and still subject to possible change or removal.
	ReleaseTickets(context.Context, *ReleaseTicketsRequest) (*ReleaseTicketsResponse, error)
}

BackendServiceServer is the server API for BackendService service.

type BackendService_FetchMatchesClient added in v0.9.0

type BackendService_FetchMatchesClient interface {
	Recv() (*FetchMatchesResponse, error)
	grpc.ClientStream
}

type BackendService_FetchMatchesServer added in v0.9.0

type BackendService_FetchMatchesServer interface {
	Send(*FetchMatchesResponse) error
	grpc.ServerStream
}

type CreateTicketRequest

type CreateTicketRequest struct {
	// A Ticket object with SearchFields defined.
	Ticket               *Ticket  `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTicketRequest) Descriptor

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

func (*CreateTicketRequest) GetTicket

func (m *CreateTicketRequest) GetTicket() *Ticket

func (*CreateTicketRequest) ProtoMessage

func (*CreateTicketRequest) ProtoMessage()

func (*CreateTicketRequest) Reset

func (m *CreateTicketRequest) Reset()

func (*CreateTicketRequest) String

func (m *CreateTicketRequest) String() string

func (*CreateTicketRequest) XXX_DiscardUnknown

func (m *CreateTicketRequest) XXX_DiscardUnknown()

func (*CreateTicketRequest) XXX_Marshal

func (m *CreateTicketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTicketRequest) XXX_Merge

func (m *CreateTicketRequest) XXX_Merge(src proto.Message)

func (*CreateTicketRequest) XXX_Size

func (m *CreateTicketRequest) XXX_Size() int

func (*CreateTicketRequest) XXX_Unmarshal

func (m *CreateTicketRequest) XXX_Unmarshal(b []byte) error

type CreateTicketResponse

type CreateTicketResponse struct {
	// A Ticket object with TicketId generated.
	Ticket               *Ticket  `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateTicketResponse) Descriptor

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

func (*CreateTicketResponse) GetTicket

func (m *CreateTicketResponse) GetTicket() *Ticket

func (*CreateTicketResponse) ProtoMessage

func (*CreateTicketResponse) ProtoMessage()

func (*CreateTicketResponse) Reset

func (m *CreateTicketResponse) Reset()

func (*CreateTicketResponse) String

func (m *CreateTicketResponse) String() string

func (*CreateTicketResponse) XXX_DiscardUnknown

func (m *CreateTicketResponse) XXX_DiscardUnknown()

func (*CreateTicketResponse) XXX_Marshal

func (m *CreateTicketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateTicketResponse) XXX_Merge

func (m *CreateTicketResponse) XXX_Merge(src proto.Message)

func (*CreateTicketResponse) XXX_Size

func (m *CreateTicketResponse) XXX_Size() int

func (*CreateTicketResponse) XXX_Unmarshal

func (m *CreateTicketResponse) XXX_Unmarshal(b []byte) error

type DefaultEvaluationCriteria added in v0.8.0

type DefaultEvaluationCriteria struct {
	Score                float64  `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A DefaultEvaluationCriteria is used for a match's evaluation_input when using the default evaluator.

func (*DefaultEvaluationCriteria) Descriptor added in v0.8.0

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

func (*DefaultEvaluationCriteria) GetScore added in v0.8.0

func (m *DefaultEvaluationCriteria) GetScore() float64

func (*DefaultEvaluationCriteria) ProtoMessage added in v0.8.0

func (*DefaultEvaluationCriteria) ProtoMessage()

func (*DefaultEvaluationCriteria) Reset added in v0.8.0

func (m *DefaultEvaluationCriteria) Reset()

func (*DefaultEvaluationCriteria) String added in v0.8.0

func (m *DefaultEvaluationCriteria) String() string

func (*DefaultEvaluationCriteria) XXX_DiscardUnknown added in v0.8.0

func (m *DefaultEvaluationCriteria) XXX_DiscardUnknown()

func (*DefaultEvaluationCriteria) XXX_Marshal added in v0.8.0

func (m *DefaultEvaluationCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DefaultEvaluationCriteria) XXX_Merge added in v0.8.0

func (m *DefaultEvaluationCriteria) XXX_Merge(src proto.Message)

func (*DefaultEvaluationCriteria) XXX_Size added in v0.8.0

func (m *DefaultEvaluationCriteria) XXX_Size() int

func (*DefaultEvaluationCriteria) XXX_Unmarshal added in v0.8.0

func (m *DefaultEvaluationCriteria) XXX_Unmarshal(b []byte) error

type DeleteTicketRequest

type DeleteTicketRequest struct {
	// A TicketId of a generated Ticket to be deleted.
	TicketId             string   `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTicketRequest) Descriptor

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

func (*DeleteTicketRequest) GetTicketId

func (m *DeleteTicketRequest) GetTicketId() string

func (*DeleteTicketRequest) ProtoMessage

func (*DeleteTicketRequest) ProtoMessage()

func (*DeleteTicketRequest) Reset

func (m *DeleteTicketRequest) Reset()

func (*DeleteTicketRequest) String

func (m *DeleteTicketRequest) String() string

func (*DeleteTicketRequest) XXX_DiscardUnknown

func (m *DeleteTicketRequest) XXX_DiscardUnknown()

func (*DeleteTicketRequest) XXX_Marshal

func (m *DeleteTicketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTicketRequest) XXX_Merge

func (m *DeleteTicketRequest) XXX_Merge(src proto.Message)

func (*DeleteTicketRequest) XXX_Size

func (m *DeleteTicketRequest) XXX_Size() int

func (*DeleteTicketRequest) XXX_Unmarshal

func (m *DeleteTicketRequest) XXX_Unmarshal(b []byte) error

type DeleteTicketResponse

type DeleteTicketResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTicketResponse) Descriptor

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

func (*DeleteTicketResponse) ProtoMessage

func (*DeleteTicketResponse) ProtoMessage()

func (*DeleteTicketResponse) Reset

func (m *DeleteTicketResponse) Reset()

func (*DeleteTicketResponse) String

func (m *DeleteTicketResponse) String() string

func (*DeleteTicketResponse) XXX_DiscardUnknown

func (m *DeleteTicketResponse) XXX_DiscardUnknown()

func (*DeleteTicketResponse) XXX_Marshal

func (m *DeleteTicketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTicketResponse) XXX_Merge

func (m *DeleteTicketResponse) XXX_Merge(src proto.Message)

func (*DeleteTicketResponse) XXX_Size

func (m *DeleteTicketResponse) XXX_Size() int

func (*DeleteTicketResponse) XXX_Unmarshal

func (m *DeleteTicketResponse) XXX_Unmarshal(b []byte) error

type DoubleRangeFilter added in v0.8.0

type DoubleRangeFilter struct {
	// Name of the ticket's search_fields.double_args this Filter operates on.
	DoubleArg string `protobuf:"bytes,1,opt,name=double_arg,json=doubleArg,proto3" json:"double_arg,omitempty"`
	// Maximum value.
	Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
	// Minimum value.
	Min                  float64  `protobuf:"fixed64,3,opt,name=min,proto3" json:"min,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Filters numerical values to only those within a range.

double_arg: "foo"
max: 10
min: 5

matches:

{"foo": 5}
{"foo": 7.5}
{"foo": 10}

does not match:

{"foo": 4}
{"foo": 10.01}
{"foo": "7.5"}
{}

func (*DoubleRangeFilter) Descriptor added in v0.8.0

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

func (*DoubleRangeFilter) GetDoubleArg added in v0.8.0

func (m *DoubleRangeFilter) GetDoubleArg() string

func (*DoubleRangeFilter) GetMax added in v0.8.0

func (m *DoubleRangeFilter) GetMax() float64

func (*DoubleRangeFilter) GetMin added in v0.8.0

func (m *DoubleRangeFilter) GetMin() float64

func (*DoubleRangeFilter) ProtoMessage added in v0.8.0

func (*DoubleRangeFilter) ProtoMessage()

func (*DoubleRangeFilter) Reset added in v0.8.0

func (m *DoubleRangeFilter) Reset()

func (*DoubleRangeFilter) String added in v0.8.0

func (m *DoubleRangeFilter) String() string

func (*DoubleRangeFilter) XXX_DiscardUnknown added in v0.8.0

func (m *DoubleRangeFilter) XXX_DiscardUnknown()

func (*DoubleRangeFilter) XXX_Marshal added in v0.8.0

func (m *DoubleRangeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleRangeFilter) XXX_Merge added in v0.8.0

func (m *DoubleRangeFilter) XXX_Merge(src proto.Message)

func (*DoubleRangeFilter) XXX_Size added in v0.8.0

func (m *DoubleRangeFilter) XXX_Size() int

func (*DoubleRangeFilter) XXX_Unmarshal added in v0.8.0

func (m *DoubleRangeFilter) XXX_Unmarshal(b []byte) error

type EvaluateRequest

type EvaluateRequest struct {
	// A Matches proposed by the Match Function representing a candidate of the final results.
	Match                *Match   `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvaluateRequest) Descriptor

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

func (*EvaluateRequest) GetMatch added in v0.7.0

func (m *EvaluateRequest) GetMatch() *Match

func (*EvaluateRequest) ProtoMessage

func (*EvaluateRequest) ProtoMessage()

func (*EvaluateRequest) Reset

func (m *EvaluateRequest) Reset()

func (*EvaluateRequest) String

func (m *EvaluateRequest) String() string

func (*EvaluateRequest) XXX_DiscardUnknown

func (m *EvaluateRequest) XXX_DiscardUnknown()

func (*EvaluateRequest) XXX_Marshal

func (m *EvaluateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvaluateRequest) XXX_Merge

func (m *EvaluateRequest) XXX_Merge(src proto.Message)

func (*EvaluateRequest) XXX_Size

func (m *EvaluateRequest) XXX_Size() int

func (*EvaluateRequest) XXX_Unmarshal

func (m *EvaluateRequest) XXX_Unmarshal(b []byte) error

type EvaluateResponse

type EvaluateResponse struct {
	// A Match ID representing a shortlisted match returned by the evaluator as the final result.
	MatchId              string   `protobuf:"bytes,2,opt,name=match_id,json=matchId,proto3" json:"match_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EvaluateResponse) Descriptor

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

func (*EvaluateResponse) GetMatchId added in v0.9.0

func (m *EvaluateResponse) GetMatchId() string

func (*EvaluateResponse) ProtoMessage

func (*EvaluateResponse) ProtoMessage()

func (*EvaluateResponse) Reset

func (m *EvaluateResponse) Reset()

func (*EvaluateResponse) String

func (m *EvaluateResponse) String() string

func (*EvaluateResponse) XXX_DiscardUnknown

func (m *EvaluateResponse) XXX_DiscardUnknown()

func (*EvaluateResponse) XXX_Marshal

func (m *EvaluateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvaluateResponse) XXX_Merge

func (m *EvaluateResponse) XXX_Merge(src proto.Message)

func (*EvaluateResponse) XXX_Size

func (m *EvaluateResponse) XXX_Size() int

func (*EvaluateResponse) XXX_Unmarshal

func (m *EvaluateResponse) XXX_Unmarshal(b []byte) error

type EvaluatorClient

type EvaluatorClient interface {
	// Evaluate evaluates a list of proposed matches based on quality, collision status, and etc, then shortlist the matches and returns the final results.
	Evaluate(ctx context.Context, opts ...grpc.CallOption) (Evaluator_EvaluateClient, error)
}

EvaluatorClient is the client API for Evaluator service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEvaluatorClient

func NewEvaluatorClient(cc *grpc.ClientConn) EvaluatorClient

type EvaluatorServer

type EvaluatorServer interface {
	// Evaluate evaluates a list of proposed matches based on quality, collision status, and etc, then shortlist the matches and returns the final results.
	Evaluate(Evaluator_EvaluateServer) error
}

EvaluatorServer is the server API for Evaluator service.

type Evaluator_EvaluateClient added in v0.7.0

type Evaluator_EvaluateClient interface {
	Send(*EvaluateRequest) error
	Recv() (*EvaluateResponse, error)
	grpc.ClientStream
}

type Evaluator_EvaluateServer added in v0.7.0

type Evaluator_EvaluateServer interface {
	Send(*EvaluateResponse) error
	Recv() (*EvaluateRequest, error)
	grpc.ServerStream
}

type FetchMatchesRequest

type FetchMatchesRequest struct {
	// A configuration for the MatchFunction server of this FetchMatches call.
	Config *FunctionConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// A MatchProfile that will be sent to the MatchFunction server of this FetchMatches call.
	Profile              *MatchProfile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*FetchMatchesRequest) Descriptor

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

func (*FetchMatchesRequest) GetConfig

func (m *FetchMatchesRequest) GetConfig() *FunctionConfig

func (*FetchMatchesRequest) GetProfile added in v0.9.0

func (m *FetchMatchesRequest) GetProfile() *MatchProfile

func (*FetchMatchesRequest) ProtoMessage

func (*FetchMatchesRequest) ProtoMessage()

func (*FetchMatchesRequest) Reset

func (m *FetchMatchesRequest) Reset()

func (*FetchMatchesRequest) String

func (m *FetchMatchesRequest) String() string

func (*FetchMatchesRequest) XXX_DiscardUnknown

func (m *FetchMatchesRequest) XXX_DiscardUnknown()

func (*FetchMatchesRequest) XXX_Marshal

func (m *FetchMatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FetchMatchesRequest) XXX_Merge

func (m *FetchMatchesRequest) XXX_Merge(src proto.Message)

func (*FetchMatchesRequest) XXX_Size

func (m *FetchMatchesRequest) XXX_Size() int

func (*FetchMatchesRequest) XXX_Unmarshal

func (m *FetchMatchesRequest) XXX_Unmarshal(b []byte) error

type FetchMatchesResponse

type FetchMatchesResponse struct {
	// A Match generated by the user-defined MMF with the specified MatchProfiles.
	// A valid Match response will contain at least one ticket.
	Match                *Match   `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FetchMatchesResponse) Descriptor

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

func (*FetchMatchesResponse) GetMatch added in v0.7.0

func (m *FetchMatchesResponse) GetMatch() *Match

func (*FetchMatchesResponse) ProtoMessage

func (*FetchMatchesResponse) ProtoMessage()

func (*FetchMatchesResponse) Reset

func (m *FetchMatchesResponse) Reset()

func (*FetchMatchesResponse) String

func (m *FetchMatchesResponse) String() string

func (*FetchMatchesResponse) XXX_DiscardUnknown

func (m *FetchMatchesResponse) XXX_DiscardUnknown()

func (*FetchMatchesResponse) XXX_Marshal

func (m *FetchMatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FetchMatchesResponse) XXX_Merge

func (m *FetchMatchesResponse) XXX_Merge(src proto.Message)

func (*FetchMatchesResponse) XXX_Size

func (m *FetchMatchesResponse) XXX_Size() int

func (*FetchMatchesResponse) XXX_Unmarshal

func (m *FetchMatchesResponse) XXX_Unmarshal(b []byte) error

type FrontendServiceClient added in v0.9.0

type FrontendServiceClient interface {
	// CreateTicket assigns an unique TicketId to the input Ticket and record it in state storage.
	// A ticket is considered as ready for matchmaking once it is created.
	//   - If a TicketId exists in a Ticket request, an auto-generated TicketId will override this field.
	//   - If SearchFields exist in a Ticket, CreateTicket will also index these fields such that one can query the ticket with query.QueryTickets function.
	CreateTicket(ctx context.Context, in *CreateTicketRequest, opts ...grpc.CallOption) (*CreateTicketResponse, error)
	// DeleteTicket immediately stops Open Match from using the Ticket for matchmaking and removes the Ticket from state storage.
	// The client must delete the Ticket when finished matchmaking with it.
	//   - If SearchFields exist in a Ticket, DeleteTicket will deindex the fields lazily.
	// Users may still be able to assign/get a ticket after calling DeleteTicket on it.
	DeleteTicket(ctx context.Context, in *DeleteTicketRequest, opts ...grpc.CallOption) (*DeleteTicketResponse, error)
	// GetTicket get the Ticket associated with the specified TicketId.
	GetTicket(ctx context.Context, in *GetTicketRequest, opts ...grpc.CallOption) (*Ticket, error)
	// GetAssignments stream back Assignment of the specified TicketId if it is updated.
	//   - If the Assignment is not updated, GetAssignment will retry using the configured backoff strategy.
	GetAssignments(ctx context.Context, in *GetAssignmentsRequest, opts ...grpc.CallOption) (FrontendService_GetAssignmentsClient, error)
}

FrontendServiceClient is the client API for FrontendService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFrontendServiceClient added in v0.9.0

func NewFrontendServiceClient(cc *grpc.ClientConn) FrontendServiceClient

type FrontendServiceServer added in v0.9.0

type FrontendServiceServer interface {
	// CreateTicket assigns an unique TicketId to the input Ticket and record it in state storage.
	// A ticket is considered as ready for matchmaking once it is created.
	//   - If a TicketId exists in a Ticket request, an auto-generated TicketId will override this field.
	//   - If SearchFields exist in a Ticket, CreateTicket will also index these fields such that one can query the ticket with query.QueryTickets function.
	CreateTicket(context.Context, *CreateTicketRequest) (*CreateTicketResponse, error)
	// DeleteTicket immediately stops Open Match from using the Ticket for matchmaking and removes the Ticket from state storage.
	// The client must delete the Ticket when finished matchmaking with it.
	//   - If SearchFields exist in a Ticket, DeleteTicket will deindex the fields lazily.
	// Users may still be able to assign/get a ticket after calling DeleteTicket on it.
	DeleteTicket(context.Context, *DeleteTicketRequest) (*DeleteTicketResponse, error)
	// GetTicket get the Ticket associated with the specified TicketId.
	GetTicket(context.Context, *GetTicketRequest) (*Ticket, error)
	// GetAssignments stream back Assignment of the specified TicketId if it is updated.
	//   - If the Assignment is not updated, GetAssignment will retry using the configured backoff strategy.
	GetAssignments(*GetAssignmentsRequest, FrontendService_GetAssignmentsServer) error
}

FrontendServiceServer is the server API for FrontendService service.

type FrontendService_GetAssignmentsClient added in v0.9.0

type FrontendService_GetAssignmentsClient interface {
	Recv() (*GetAssignmentsResponse, error)
	grpc.ClientStream
}

type FrontendService_GetAssignmentsServer added in v0.9.0

type FrontendService_GetAssignmentsServer interface {
	Send(*GetAssignmentsResponse) error
	grpc.ServerStream
}

type FunctionConfig

type FunctionConfig struct {
	Host                 string              `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port                 int32               `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Type                 FunctionConfig_Type `protobuf:"varint,3,opt,name=type,proto3,enum=openmatch.FunctionConfig_Type" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

FunctionConfig specifies a MMF address and client type for Backend to establish connections with the MMF

func (*FunctionConfig) Descriptor

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

func (*FunctionConfig) GetHost

func (m *FunctionConfig) GetHost() string

func (*FunctionConfig) GetPort

func (m *FunctionConfig) GetPort() int32

func (*FunctionConfig) GetType

func (m *FunctionConfig) GetType() FunctionConfig_Type

func (*FunctionConfig) ProtoMessage

func (*FunctionConfig) ProtoMessage()

func (*FunctionConfig) Reset

func (m *FunctionConfig) Reset()

func (*FunctionConfig) String

func (m *FunctionConfig) String() string

func (*FunctionConfig) XXX_DiscardUnknown

func (m *FunctionConfig) XXX_DiscardUnknown()

func (*FunctionConfig) XXX_Marshal

func (m *FunctionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FunctionConfig) XXX_Merge

func (m *FunctionConfig) XXX_Merge(src proto.Message)

func (*FunctionConfig) XXX_Size

func (m *FunctionConfig) XXX_Size() int

func (*FunctionConfig) XXX_Unmarshal

func (m *FunctionConfig) XXX_Unmarshal(b []byte) error

type FunctionConfig_Type

type FunctionConfig_Type int32
const (
	FunctionConfig_GRPC FunctionConfig_Type = 0
	FunctionConfig_REST FunctionConfig_Type = 1
)

func (FunctionConfig_Type) EnumDescriptor

func (FunctionConfig_Type) EnumDescriptor() ([]byte, []int)

func (FunctionConfig_Type) String

func (x FunctionConfig_Type) String() string

type GetAssignmentsRequest

type GetAssignmentsRequest struct {
	// A TicketId of a generated Ticket to get updates on.
	TicketId             string   `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetAssignmentsRequest) Descriptor

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

func (*GetAssignmentsRequest) GetTicketId

func (m *GetAssignmentsRequest) GetTicketId() string

func (*GetAssignmentsRequest) ProtoMessage

func (*GetAssignmentsRequest) ProtoMessage()

func (*GetAssignmentsRequest) Reset

func (m *GetAssignmentsRequest) Reset()

func (*GetAssignmentsRequest) String

func (m *GetAssignmentsRequest) String() string

func (*GetAssignmentsRequest) XXX_DiscardUnknown

func (m *GetAssignmentsRequest) XXX_DiscardUnknown()

func (*GetAssignmentsRequest) XXX_Marshal

func (m *GetAssignmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAssignmentsRequest) XXX_Merge

func (m *GetAssignmentsRequest) XXX_Merge(src proto.Message)

func (*GetAssignmentsRequest) XXX_Size

func (m *GetAssignmentsRequest) XXX_Size() int

func (*GetAssignmentsRequest) XXX_Unmarshal

func (m *GetAssignmentsRequest) XXX_Unmarshal(b []byte) error

type GetAssignmentsResponse

type GetAssignmentsResponse struct {
	// An updated Assignment of the requested Ticket.
	Assignment           *Assignment `protobuf:"bytes,1,opt,name=assignment,proto3" json:"assignment,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetAssignmentsResponse) Descriptor

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

func (*GetAssignmentsResponse) GetAssignment

func (m *GetAssignmentsResponse) GetAssignment() *Assignment

func (*GetAssignmentsResponse) ProtoMessage

func (*GetAssignmentsResponse) ProtoMessage()

func (*GetAssignmentsResponse) Reset

func (m *GetAssignmentsResponse) Reset()

func (*GetAssignmentsResponse) String

func (m *GetAssignmentsResponse) String() string

func (*GetAssignmentsResponse) XXX_DiscardUnknown

func (m *GetAssignmentsResponse) XXX_DiscardUnknown()

func (*GetAssignmentsResponse) XXX_Marshal

func (m *GetAssignmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAssignmentsResponse) XXX_Merge

func (m *GetAssignmentsResponse) XXX_Merge(src proto.Message)

func (*GetAssignmentsResponse) XXX_Size

func (m *GetAssignmentsResponse) XXX_Size() int

func (*GetAssignmentsResponse) XXX_Unmarshal

func (m *GetAssignmentsResponse) XXX_Unmarshal(b []byte) error

type GetTicketRequest

type GetTicketRequest struct {
	// A TicketId of a generated Ticket.
	TicketId             string   `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTicketRequest) Descriptor

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

func (*GetTicketRequest) GetTicketId

func (m *GetTicketRequest) GetTicketId() string

func (*GetTicketRequest) ProtoMessage

func (*GetTicketRequest) ProtoMessage()

func (*GetTicketRequest) Reset

func (m *GetTicketRequest) Reset()

func (*GetTicketRequest) String

func (m *GetTicketRequest) String() string

func (*GetTicketRequest) XXX_DiscardUnknown

func (m *GetTicketRequest) XXX_DiscardUnknown()

func (*GetTicketRequest) XXX_Marshal

func (m *GetTicketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTicketRequest) XXX_Merge

func (m *GetTicketRequest) XXX_Merge(src proto.Message)

func (*GetTicketRequest) XXX_Size

func (m *GetTicketRequest) XXX_Size() int

func (*GetTicketRequest) XXX_Unmarshal

func (m *GetTicketRequest) XXX_Unmarshal(b []byte) error

type Match

type Match struct {
	// A Match ID that should be passed through the stack for tracing.
	MatchId string `protobuf:"bytes,1,opt,name=match_id,json=matchId,proto3" json:"match_id,omitempty"`
	// Name of the match profile that generated this Match.
	MatchProfile string `protobuf:"bytes,2,opt,name=match_profile,json=matchProfile,proto3" json:"match_profile,omitempty"`
	// Name of the match function that generated this Match.
	MatchFunction string `protobuf:"bytes,3,opt,name=match_function,json=matchFunction,proto3" json:"match_function,omitempty"`
	// Tickets belonging to this match.
	Tickets []*Ticket `protobuf:"bytes,4,rep,name=tickets,proto3" json:"tickets,omitempty"`
	// Customized information not inspected by Open Match, to be used by the match
	// making function, evaluator, and components making calls to Open Match.
	// Optional, depending on the requirements of the connected systems.
	Extensions           map[string]*any.Any `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

A Match is used to represent a completed match object. It can be generated by a MatchFunction as a proposal or can be returned by OpenMatch as a result in response to the FetchMatches call. When a match is returned by the FetchMatches call, it should contain at least one ticket to be considered as valid.

func (*Match) Descriptor

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

func (*Match) GetExtensions added in v0.8.0

func (m *Match) GetExtensions() map[string]*any.Any

func (*Match) GetMatchFunction

func (m *Match) GetMatchFunction() string

func (*Match) GetMatchId

func (m *Match) GetMatchId() string

func (*Match) GetMatchProfile

func (m *Match) GetMatchProfile() string

func (*Match) GetTickets

func (m *Match) GetTickets() []*Ticket

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) Reset

func (m *Match) Reset()

func (*Match) String

func (m *Match) String() string

func (*Match) XXX_DiscardUnknown

func (m *Match) XXX_DiscardUnknown()

func (*Match) XXX_Marshal

func (m *Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Match) XXX_Merge

func (m *Match) XXX_Merge(src proto.Message)

func (*Match) XXX_Size

func (m *Match) XXX_Size() int

func (*Match) XXX_Unmarshal

func (m *Match) XXX_Unmarshal(b []byte) error

type MatchFunctionClient

type MatchFunctionClient interface {
	// DO NOT CALL THIS FUNCTION MANUALLY. USE backend.FetchMatches INSTEAD.
	// Run pulls Tickets that satisify Profile constraints from QueryService, runs matchmaking logics against them, then
	// constructs and streams back match candidates to the Backend service.
	Run(ctx context.Context, in *RunRequest, opts ...grpc.CallOption) (MatchFunction_RunClient, error)
}

MatchFunctionClient is the client API for MatchFunction service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMatchFunctionClient

func NewMatchFunctionClient(cc *grpc.ClientConn) MatchFunctionClient

type MatchFunctionServer

type MatchFunctionServer interface {
	// DO NOT CALL THIS FUNCTION MANUALLY. USE backend.FetchMatches INSTEAD.
	// Run pulls Tickets that satisify Profile constraints from QueryService, runs matchmaking logics against them, then
	// constructs and streams back match candidates to the Backend service.
	Run(*RunRequest, MatchFunction_RunServer) error
}

MatchFunctionServer is the server API for MatchFunction service.

type MatchFunction_RunClient added in v0.7.0

type MatchFunction_RunClient interface {
	Recv() (*RunResponse, error)
	grpc.ClientStream
}

type MatchFunction_RunServer added in v0.7.0

type MatchFunction_RunServer interface {
	Send(*RunResponse) error
	grpc.ServerStream
}

type MatchProfile

type MatchProfile struct {
	// Name of this match profile.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Set of pools to be queried when generating a match for this MatchProfile.
	Pools []*Pool `protobuf:"bytes,3,rep,name=pools,proto3" json:"pools,omitempty"`
	// Customized information not inspected by Open Match, to be used by the match
	// making function, evaluator, and components making calls to Open Match.
	// Optional, depending on the requirements of the connected systems.
	Extensions           map[string]*any.Any `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

A MatchProfile is Open Match's representation of a Match specification. It is used to indicate the criteria for selecting players for a match. A MatchProfile is the input to the API to get matches and is passed to the MatchFunction. It contains all the information required by the MatchFunction to generate match proposals.

func (*MatchProfile) Descriptor

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

func (*MatchProfile) GetExtensions added in v0.8.0

func (m *MatchProfile) GetExtensions() map[string]*any.Any

func (*MatchProfile) GetName

func (m *MatchProfile) GetName() string

func (*MatchProfile) GetPools

func (m *MatchProfile) GetPools() []*Pool

func (*MatchProfile) ProtoMessage

func (*MatchProfile) ProtoMessage()

func (*MatchProfile) Reset

func (m *MatchProfile) Reset()

func (*MatchProfile) String

func (m *MatchProfile) String() string

func (*MatchProfile) XXX_DiscardUnknown

func (m *MatchProfile) XXX_DiscardUnknown()

func (*MatchProfile) XXX_Marshal

func (m *MatchProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchProfile) XXX_Merge

func (m *MatchProfile) XXX_Merge(src proto.Message)

func (*MatchProfile) XXX_Size

func (m *MatchProfile) XXX_Size() int

func (*MatchProfile) XXX_Unmarshal

func (m *MatchProfile) XXX_Unmarshal(b []byte) error

type Pool

type Pool struct {
	// A developer-chosen human-readable name for this Pool.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Set of Filters indicating the filtering criteria. Selected players must
	// match every Filter.
	DoubleRangeFilters   []*DoubleRangeFilter  `protobuf:"bytes,2,rep,name=double_range_filters,json=doubleRangeFilters,proto3" json:"double_range_filters,omitempty"`
	StringEqualsFilters  []*StringEqualsFilter `protobuf:"bytes,4,rep,name=string_equals_filters,json=stringEqualsFilters,proto3" json:"string_equals_filters,omitempty"`
	TagPresentFilters    []*TagPresentFilter   `protobuf:"bytes,5,rep,name=tag_present_filters,json=tagPresentFilters,proto3" json:"tag_present_filters,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Pool) Descriptor

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

func (*Pool) GetDoubleRangeFilters added in v0.8.0

func (m *Pool) GetDoubleRangeFilters() []*DoubleRangeFilter

func (*Pool) GetName

func (m *Pool) GetName() string

func (*Pool) GetStringEqualsFilters added in v0.7.0

func (m *Pool) GetStringEqualsFilters() []*StringEqualsFilter

func (*Pool) GetTagPresentFilters added in v0.8.0

func (m *Pool) GetTagPresentFilters() []*TagPresentFilter

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) Reset

func (m *Pool) Reset()

func (*Pool) String

func (m *Pool) String() string

func (*Pool) XXX_DiscardUnknown

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal

func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pool) XXX_Merge

func (m *Pool) XXX_Merge(src proto.Message)

func (*Pool) XXX_Size

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal

func (m *Pool) XXX_Unmarshal(b []byte) error

type QueryServiceClient added in v0.9.0

type QueryServiceClient interface {
	// QueryTickets gets a list of Tickets that match all Filters of the input Pool.
	//   - If the Pool contains no Filters, QueryTickets will return all Tickets in the state storage.
	// QueryTickets pages the Tickets by `storage.pool.size` and stream back response.
	//   - storage.pool.size is default to 1000 if not set, and has a mininum of 10 and maximum of 10000
	QueryTickets(ctx context.Context, in *QueryTicketsRequest, opts ...grpc.CallOption) (QueryService_QueryTicketsClient, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryServiceClient added in v0.9.0

func NewQueryServiceClient(cc *grpc.ClientConn) QueryServiceClient

type QueryServiceServer added in v0.9.0

type QueryServiceServer interface {
	// QueryTickets gets a list of Tickets that match all Filters of the input Pool.
	//   - If the Pool contains no Filters, QueryTickets will return all Tickets in the state storage.
	// QueryTickets pages the Tickets by `storage.pool.size` and stream back response.
	//   - storage.pool.size is default to 1000 if not set, and has a mininum of 10 and maximum of 10000
	QueryTickets(*QueryTicketsRequest, QueryService_QueryTicketsServer) error
}

QueryServiceServer is the server API for QueryService service.

type QueryService_QueryTicketsClient added in v0.9.0

type QueryService_QueryTicketsClient interface {
	Recv() (*QueryTicketsResponse, error)
	grpc.ClientStream
}

type QueryService_QueryTicketsServer added in v0.9.0

type QueryService_QueryTicketsServer interface {
	Send(*QueryTicketsResponse) error
	grpc.ServerStream
}

type QueryTicketsRequest

type QueryTicketsRequest struct {
	// A Pool is consists of a set of Filters.
	Pool                 *Pool    `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*QueryTicketsRequest) Descriptor

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

func (*QueryTicketsRequest) GetPool

func (m *QueryTicketsRequest) GetPool() *Pool

func (*QueryTicketsRequest) ProtoMessage

func (*QueryTicketsRequest) ProtoMessage()

func (*QueryTicketsRequest) Reset

func (m *QueryTicketsRequest) Reset()

func (*QueryTicketsRequest) String

func (m *QueryTicketsRequest) String() string

func (*QueryTicketsRequest) XXX_DiscardUnknown

func (m *QueryTicketsRequest) XXX_DiscardUnknown()

func (*QueryTicketsRequest) XXX_Marshal

func (m *QueryTicketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTicketsRequest) XXX_Merge

func (m *QueryTicketsRequest) XXX_Merge(src proto.Message)

func (*QueryTicketsRequest) XXX_Size

func (m *QueryTicketsRequest) XXX_Size() int

func (*QueryTicketsRequest) XXX_Unmarshal

func (m *QueryTicketsRequest) XXX_Unmarshal(b []byte) error

type QueryTicketsResponse

type QueryTicketsResponse struct {
	// Tickets that satisfy all the filtering criteria.
	Tickets              []*Ticket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*QueryTicketsResponse) Descriptor

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

func (*QueryTicketsResponse) GetTickets

func (m *QueryTicketsResponse) GetTickets() []*Ticket

func (*QueryTicketsResponse) ProtoMessage

func (*QueryTicketsResponse) ProtoMessage()

func (*QueryTicketsResponse) Reset

func (m *QueryTicketsResponse) Reset()

func (*QueryTicketsResponse) String

func (m *QueryTicketsResponse) String() string

func (*QueryTicketsResponse) XXX_DiscardUnknown

func (m *QueryTicketsResponse) XXX_DiscardUnknown()

func (*QueryTicketsResponse) XXX_Marshal

func (m *QueryTicketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTicketsResponse) XXX_Merge

func (m *QueryTicketsResponse) XXX_Merge(src proto.Message)

func (*QueryTicketsResponse) XXX_Size

func (m *QueryTicketsResponse) XXX_Size() int

func (*QueryTicketsResponse) XXX_Unmarshal

func (m *QueryTicketsResponse) XXX_Unmarshal(b []byte) error

type ReleaseTicketsRequest added in v0.9.0

type ReleaseTicketsRequest struct {
	// TicketIds is a list of string representing Open Match generated Ids to be re-enabled for MMF querying
	// because they are no longer awaiting assignment from a previous match result
	TicketIds            []string `protobuf:"bytes,1,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReleaseTicketsRequest) Descriptor added in v0.9.0

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

func (*ReleaseTicketsRequest) GetTicketIds added in v0.9.0

func (m *ReleaseTicketsRequest) GetTicketIds() []string

func (*ReleaseTicketsRequest) ProtoMessage added in v0.9.0

func (*ReleaseTicketsRequest) ProtoMessage()

func (*ReleaseTicketsRequest) Reset added in v0.9.0

func (m *ReleaseTicketsRequest) Reset()

func (*ReleaseTicketsRequest) String added in v0.9.0

func (m *ReleaseTicketsRequest) String() string

func (*ReleaseTicketsRequest) XXX_DiscardUnknown added in v0.9.0

func (m *ReleaseTicketsRequest) XXX_DiscardUnknown()

func (*ReleaseTicketsRequest) XXX_Marshal added in v0.9.0

func (m *ReleaseTicketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReleaseTicketsRequest) XXX_Merge added in v0.9.0

func (m *ReleaseTicketsRequest) XXX_Merge(src proto.Message)

func (*ReleaseTicketsRequest) XXX_Size added in v0.9.0

func (m *ReleaseTicketsRequest) XXX_Size() int

func (*ReleaseTicketsRequest) XXX_Unmarshal added in v0.9.0

func (m *ReleaseTicketsRequest) XXX_Unmarshal(b []byte) error

type ReleaseTicketsResponse added in v0.9.0

type ReleaseTicketsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReleaseTicketsResponse) Descriptor added in v0.9.0

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

func (*ReleaseTicketsResponse) ProtoMessage added in v0.9.0

func (*ReleaseTicketsResponse) ProtoMessage()

func (*ReleaseTicketsResponse) Reset added in v0.9.0

func (m *ReleaseTicketsResponse) Reset()

func (*ReleaseTicketsResponse) String added in v0.9.0

func (m *ReleaseTicketsResponse) String() string

func (*ReleaseTicketsResponse) XXX_DiscardUnknown added in v0.9.0

func (m *ReleaseTicketsResponse) XXX_DiscardUnknown()

func (*ReleaseTicketsResponse) XXX_Marshal added in v0.9.0

func (m *ReleaseTicketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReleaseTicketsResponse) XXX_Merge added in v0.9.0

func (m *ReleaseTicketsResponse) XXX_Merge(src proto.Message)

func (*ReleaseTicketsResponse) XXX_Size added in v0.9.0

func (m *ReleaseTicketsResponse) XXX_Size() int

func (*ReleaseTicketsResponse) XXX_Unmarshal added in v0.9.0

func (m *ReleaseTicketsResponse) XXX_Unmarshal(b []byte) error

type RunRequest

type RunRequest struct {
	// A MatchProfile defines constraints of Tickets in a Match and shapes the Match proposed by the MatchFunction.
	Profile              *MatchProfile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*RunRequest) Descriptor

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

func (*RunRequest) GetProfile

func (m *RunRequest) GetProfile() *MatchProfile

func (*RunRequest) ProtoMessage

func (*RunRequest) ProtoMessage()

func (*RunRequest) Reset

func (m *RunRequest) Reset()

func (*RunRequest) String

func (m *RunRequest) String() string

func (*RunRequest) XXX_DiscardUnknown

func (m *RunRequest) XXX_DiscardUnknown()

func (*RunRequest) XXX_Marshal

func (m *RunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunRequest) XXX_Merge

func (m *RunRequest) XXX_Merge(src proto.Message)

func (*RunRequest) XXX_Size

func (m *RunRequest) XXX_Size() int

func (*RunRequest) XXX_Unmarshal

func (m *RunRequest) XXX_Unmarshal(b []byte) error

type RunResponse

type RunResponse struct {
	// A Proposal represents a Match candidate that satifies the constraints defined in the input Profile.
	// A valid Proposal response will contain at least one ticket.
	Proposal             *Match   `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RunResponse) Descriptor

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

func (*RunResponse) GetProposal added in v0.7.0

func (m *RunResponse) GetProposal() *Match

func (*RunResponse) ProtoMessage

func (*RunResponse) ProtoMessage()

func (*RunResponse) Reset

func (m *RunResponse) Reset()

func (*RunResponse) String

func (m *RunResponse) String() string

func (*RunResponse) XXX_DiscardUnknown

func (m *RunResponse) XXX_DiscardUnknown()

func (*RunResponse) XXX_Marshal

func (m *RunResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunResponse) XXX_Merge

func (m *RunResponse) XXX_Merge(src proto.Message)

func (*RunResponse) XXX_Size

func (m *RunResponse) XXX_Size() int

func (*RunResponse) XXX_Unmarshal

func (m *RunResponse) XXX_Unmarshal(b []byte) error

type SearchFields added in v0.8.0

type SearchFields struct {
	// Float arguments.  Filterable on ranges.
	DoubleArgs map[string]float64 `` /* 181-byte string literal not displayed */
	// String arguments.  Filterable on equality.
	StringArgs map[string]string `` /* 179-byte string literal not displayed */
	// Filterable on presence or absence of given value.
	Tags                 []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Search fields are the fields which Open Match is aware of, and can be used when specifying filters.

func (*SearchFields) Descriptor added in v0.8.0

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

func (*SearchFields) GetDoubleArgs added in v0.8.0

func (m *SearchFields) GetDoubleArgs() map[string]float64

func (*SearchFields) GetStringArgs added in v0.8.0

func (m *SearchFields) GetStringArgs() map[string]string

func (*SearchFields) GetTags added in v0.8.0

func (m *SearchFields) GetTags() []string

func (*SearchFields) ProtoMessage added in v0.8.0

func (*SearchFields) ProtoMessage()

func (*SearchFields) Reset added in v0.8.0

func (m *SearchFields) Reset()

func (*SearchFields) String added in v0.8.0

func (m *SearchFields) String() string

func (*SearchFields) XXX_DiscardUnknown added in v0.8.0

func (m *SearchFields) XXX_DiscardUnknown()

func (*SearchFields) XXX_Marshal added in v0.8.0

func (m *SearchFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchFields) XXX_Merge added in v0.8.0

func (m *SearchFields) XXX_Merge(src proto.Message)

func (*SearchFields) XXX_Size added in v0.8.0

func (m *SearchFields) XXX_Size() int

func (*SearchFields) XXX_Unmarshal added in v0.8.0

func (m *SearchFields) XXX_Unmarshal(b []byte) error

type StringEqualsFilter added in v0.7.0

type StringEqualsFilter struct {
	// Name of the ticket's search_fields.string_args this Filter operates on.
	StringArg            string   `protobuf:"bytes,1,opt,name=string_arg,json=stringArg,proto3" json:"string_arg,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Filters strings exactly equaling a value.

string_arg: "foo"
value: "bar"

matches:

{"foo": "bar"}

does not match:

{"foo": "baz"}
{"bar": "foo"}
{}

func (*StringEqualsFilter) Descriptor added in v0.7.0

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

func (*StringEqualsFilter) GetStringArg added in v0.8.0

func (m *StringEqualsFilter) GetStringArg() string

func (*StringEqualsFilter) GetValue added in v0.7.0

func (m *StringEqualsFilter) GetValue() string

func (*StringEqualsFilter) ProtoMessage added in v0.7.0

func (*StringEqualsFilter) ProtoMessage()

func (*StringEqualsFilter) Reset added in v0.7.0

func (m *StringEqualsFilter) Reset()

func (*StringEqualsFilter) String added in v0.7.0

func (m *StringEqualsFilter) String() string

func (*StringEqualsFilter) XXX_DiscardUnknown added in v0.7.0

func (m *StringEqualsFilter) XXX_DiscardUnknown()

func (*StringEqualsFilter) XXX_Marshal added in v0.7.0

func (m *StringEqualsFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringEqualsFilter) XXX_Merge added in v0.7.0

func (m *StringEqualsFilter) XXX_Merge(src proto.Message)

func (*StringEqualsFilter) XXX_Size added in v0.7.0

func (m *StringEqualsFilter) XXX_Size() int

func (*StringEqualsFilter) XXX_Unmarshal added in v0.7.0

func (m *StringEqualsFilter) XXX_Unmarshal(b []byte) error

type TagPresentFilter added in v0.8.0

type TagPresentFilter struct {
	Tag                  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Filters to the tag being present on the search_fields.

tag: "foo"

matches:

["foo"]
["bar","foo"]

does not match:

["bar"]
[]

func (*TagPresentFilter) Descriptor added in v0.8.0

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

func (*TagPresentFilter) GetTag added in v0.8.0

func (m *TagPresentFilter) GetTag() string

func (*TagPresentFilter) ProtoMessage added in v0.8.0

func (*TagPresentFilter) ProtoMessage()

func (*TagPresentFilter) Reset added in v0.8.0

func (m *TagPresentFilter) Reset()

func (*TagPresentFilter) String added in v0.8.0

func (m *TagPresentFilter) String() string

func (*TagPresentFilter) XXX_DiscardUnknown added in v0.8.0

func (m *TagPresentFilter) XXX_DiscardUnknown()

func (*TagPresentFilter) XXX_Marshal added in v0.8.0

func (m *TagPresentFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagPresentFilter) XXX_Merge added in v0.8.0

func (m *TagPresentFilter) XXX_Merge(src proto.Message)

func (*TagPresentFilter) XXX_Size added in v0.8.0

func (m *TagPresentFilter) XXX_Size() int

func (*TagPresentFilter) XXX_Unmarshal added in v0.8.0

func (m *TagPresentFilter) XXX_Unmarshal(b []byte) error

type Ticket

type Ticket struct {
	// Id represents an auto-generated Id issued by Open Match.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// An Assignment represents a game server assignment associated with a Ticket.
	// Open Match does not require or inspect any fields on Assignment.
	Assignment *Assignment `protobuf:"bytes,3,opt,name=assignment,proto3" json:"assignment,omitempty"`
	// Search fields are the fields which Open Match is aware of, and can be used
	// when specifying filters.
	SearchFields *SearchFields `protobuf:"bytes,4,opt,name=search_fields,json=searchFields,proto3" json:"search_fields,omitempty"`
	// Customized information not inspected by Open Match, to be used by the match
	// making function, evaluator, and components making calls to Open Match.
	// Optional, depending on the requirements of the connected systems.
	Extensions           map[string]*any.Any `` /* 161-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

A Ticket is a basic matchmaking entity in Open Match. A Ticket represents either an individual 'Player' or a 'Group' of players. Open Match will not interpret what the Ticket represents but just treat it as a matchmaking unit with a set of SearchFields. Open Match stores the Ticket in state storage and enables an Assignment to be associated with this Ticket.

func (*Ticket) Descriptor

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

func (*Ticket) GetAssignment

func (m *Ticket) GetAssignment() *Assignment

func (*Ticket) GetExtensions added in v0.8.0

func (m *Ticket) GetExtensions() map[string]*any.Any

func (*Ticket) GetId

func (m *Ticket) GetId() string

func (*Ticket) GetSearchFields added in v0.8.0

func (m *Ticket) GetSearchFields() *SearchFields

func (*Ticket) ProtoMessage

func (*Ticket) ProtoMessage()

func (*Ticket) Reset

func (m *Ticket) Reset()

func (*Ticket) String

func (m *Ticket) String() string

func (*Ticket) XXX_DiscardUnknown

func (m *Ticket) XXX_DiscardUnknown()

func (*Ticket) XXX_Marshal

func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ticket) XXX_Merge

func (m *Ticket) XXX_Merge(src proto.Message)

func (*Ticket) XXX_Size

func (m *Ticket) XXX_Size() int

func (*Ticket) XXX_Unmarshal

func (m *Ticket) XXX_Unmarshal(b []byte) error

type UnimplementedBackendServiceServer added in v0.9.0

type UnimplementedBackendServiceServer struct {
}

UnimplementedBackendServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBackendServiceServer) AssignTickets added in v0.9.0

func (*UnimplementedBackendServiceServer) FetchMatches added in v0.9.0

func (*UnimplementedBackendServiceServer) ReleaseTickets added in v0.9.0

type UnimplementedEvaluatorServer added in v0.7.0

type UnimplementedEvaluatorServer struct {
}

UnimplementedEvaluatorServer can be embedded to have forward compatible implementations.

func (*UnimplementedEvaluatorServer) Evaluate added in v0.7.0

type UnimplementedFrontendServiceServer added in v0.9.0

type UnimplementedFrontendServiceServer struct {
}

UnimplementedFrontendServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFrontendServiceServer) CreateTicket added in v0.9.0

func (*UnimplementedFrontendServiceServer) DeleteTicket added in v0.9.0

func (*UnimplementedFrontendServiceServer) GetAssignments added in v0.9.0

func (*UnimplementedFrontendServiceServer) GetTicket added in v0.9.0

type UnimplementedMatchFunctionServer added in v0.7.0

type UnimplementedMatchFunctionServer struct {
}

UnimplementedMatchFunctionServer can be embedded to have forward compatible implementations.

func (*UnimplementedMatchFunctionServer) Run added in v0.7.0

type UnimplementedQueryServiceServer added in v0.9.0

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryTickets added in v0.9.0

Jump to

Keyboard shortcuts

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