Documentation ¶
Overview ¶
repositories @author LanguageY++2013 2022/11/7 18:59 @company soulgame
Index ¶
- type MatchmakingRepository
- func (rep *MatchmakingRepository) AcceptMatch(ctx context.Context, name string, ticketId string, ...) (sgErr sgerrors.SGError)
- func (rep *MatchmakingRepository) CheckConfiguration(conf *open.MatchmakingConfiguration) (sgErr error)
- func (m *MatchmakingRepository) DescribeMatchmaking(ctx context.Context, ticketIds []string) (tickets []*open.MatchmakingTicket)
- func (rep *MatchmakingRepository) MatchmakingConf(ctx context.Context, name string) (conf *open.MatchmakingConfiguration, sgErr error)
- func (rep *MatchmakingRepository) SaveConfiguration(ctx context.Context, conf *open.MatchmakingConfiguration) (e *entities.Matchmaking, sgErr sgerrors.SGError)
- func (rep *MatchmakingRepository) StartMatchmaking(ctx context.Context, name string, ticketId string, players []*open.MatchPlayer) (sgErr error)
- func (rep *MatchmakingRepository) StopMatchmaking(ctx context.Context, ticketId string) (sgErr error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchmakingRepository ¶
type MatchmakingRepository struct {
// contains filtered or unexported fields
}
媒人仓储
func NewMatchmakingRepository ¶
func NewMatchmakingRepository(opts ...Option) *MatchmakingRepository
func (*MatchmakingRepository) AcceptMatch ¶
func (rep *MatchmakingRepository) AcceptMatch(ctx context.Context, name string, ticketId string, acceptType open.AcceptanceType, playerIds []int64) (sgErr sgerrors.SGError)
func (*MatchmakingRepository) CheckConfiguration ¶
func (rep *MatchmakingRepository) CheckConfiguration(conf *open.MatchmakingConfiguration) (sgErr error)
func (*MatchmakingRepository) DescribeMatchmaking ¶
func (m *MatchmakingRepository) DescribeMatchmaking(ctx context.Context, ticketIds []string) (tickets []*open.MatchmakingTicket)
DescribeMatchmaking 票证信息查询
func (*MatchmakingRepository) MatchmakingConf ¶
func (rep *MatchmakingRepository) MatchmakingConf(ctx context.Context, name string) (conf *open.MatchmakingConfiguration, sgErr error)
MatchmakingConf 媒介配置
func (*MatchmakingRepository) SaveConfiguration ¶
func (rep *MatchmakingRepository) SaveConfiguration(ctx context.Context, conf *open.MatchmakingConfiguration) (e *entities.Matchmaking, sgErr sgerrors.SGError)
SaveConfiguration 保存配置
func (*MatchmakingRepository) StartMatchmaking ¶
func (rep *MatchmakingRepository) StartMatchmaking(ctx context.Context, name string, ticketId string, players []*open.MatchPlayer) (sgErr error)
StartMatchmaking 开始匹配
func (*MatchmakingRepository) StopMatchmaking ¶
func (rep *MatchmakingRepository) StopMatchmaking(ctx context.Context, ticketId string) (sgErr error)
StopMatchmaking 取消匹配 (是否成功依据取消事件,而不是当前返回)
Click to show internal directories.
Click to hide internal directories.