Documentation ¶
Index ¶
- func GenerateString() string
- func InsertUser(t *testing.T, db *sql.DB, uid uuid.UUID)
- func NewAPIServer(t *testing.T, runtime *server.Runtime) (*server.ApiServer, *server.Pipeline)
- func NewAuthenticatedAPIClient(t *testing.T, customID string) (*grpc.ClientConn, apigrpc.NakamaClient, *api.Session, context.Context)
- func NewConsoleLogger(output *os.File, verbose bool) *zap.Logger
- func NewDB(t *testing.T) *sql.DB
- func NewSession(t *testing.T, customID string) (*grpc.ClientConn, apigrpc.NakamaClient, *api.Session, context.Context)
- func UserIDFromSession(session *api.Session) (uuid.UUID, error)
- type DummyMessageRouter
- func (d *DummyMessageRouter) SendDeferred(*zap.Logger, bool, uint8, []*server.DeferredMessage)
- func (d *DummyMessageRouter) SendToPresenceIDs(*zap.Logger, []*server.PresenceID, bool, uint8, *rtapi.Envelope)
- func (d *DummyMessageRouter) SendToStream(*zap.Logger, server.PresenceStream, *rtapi.Envelope)
- type DummySession
- func (d *DummySession) ClientIP() string
- func (d *DummySession) ClientPort() string
- func (d *DummySession) Close(reason string)
- func (d *DummySession) Consume(...)
- func (d *DummySession) Context() context.Context
- func (d *DummySession) Expiry() int64
- func (d *DummySession) Format() server.SessionFormat
- func (d *DummySession) ID() uuid.UUID
- func (d *DummySession) Logger() *zap.Logger
- func (d *DummySession) Send(isStream bool, mode uint8, envelope *rtapi.Envelope) error
- func (d *DummySession) SendBytes(isStream bool, mode uint8, payload []byte) error
- func (d *DummySession) SetUsername(string)
- func (d *DummySession) UserID() uuid.UUID
- func (d *DummySession) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateString ¶
func GenerateString() string
func NewAPIServer ¶
func NewSession ¶
Types ¶
type DummyMessageRouter ¶
type DummyMessageRouter struct{}
func (*DummyMessageRouter) SendDeferred ¶
func (d *DummyMessageRouter) SendDeferred(*zap.Logger, bool, uint8, []*server.DeferredMessage)
func (*DummyMessageRouter) SendToPresenceIDs ¶
func (d *DummyMessageRouter) SendToPresenceIDs(*zap.Logger, []*server.PresenceID, bool, uint8, *rtapi.Envelope)
func (*DummyMessageRouter) SendToStream ¶
func (d *DummyMessageRouter) SendToStream(*zap.Logger, server.PresenceStream, *rtapi.Envelope)
type DummySession ¶
type DummySession struct {
// contains filtered or unexported fields
}
func (*DummySession) ClientIP ¶
func (d *DummySession) ClientIP() string
func (*DummySession) ClientPort ¶
func (d *DummySession) ClientPort() string
func (*DummySession) Close ¶
func (d *DummySession) Close(reason string)
func (*DummySession) Context ¶
func (d *DummySession) Context() context.Context
func (*DummySession) Expiry ¶
func (d *DummySession) Expiry() int64
func (*DummySession) Format ¶
func (d *DummySession) Format() server.SessionFormat
func (*DummySession) ID ¶
func (d *DummySession) ID() uuid.UUID
func (*DummySession) Logger ¶
func (d *DummySession) Logger() *zap.Logger
func (*DummySession) SendBytes ¶
func (d *DummySession) SendBytes(isStream bool, mode uint8, payload []byte) error
func (*DummySession) SetUsername ¶
func (d *DummySession) SetUsername(string)
func (*DummySession) UserID ¶
func (d *DummySession) UserID() uuid.UUID
func (*DummySession) Username ¶
func (d *DummySession) Username() string
Click to show internal directories.
Click to hide internal directories.