EndpointDatabaseMock class

Implemented types

Constructors

EndpointDatabaseMock.new()

Properties

caller EndpointCaller
Holds a reference to the caller class.
finalinherited
client ServerpodClientShared
Reference to the client.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the endpoint this reference is connected to.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<SerializableModel>
Stream of messages sent from an endpoint that supports streaming.
no setterinherited

Methods

createSuperUser({required String cloudCapsuleId, required String username}) Future<String>
Creates a new super user in the database. Returns the password for the new user.
inherited
getConnectionDetails({required String cloudCapsuleId}) Future<DatabaseConnection>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetDatabasePassword({required String cloudCapsuleId, required String username}) Future<String>
Resets the password for a user in the database. Returns the new password for the user.
inherited
resetStream() → void
Resets web socket stream, so it's possible to re-listen to endpoint streams.
inherited
sendStreamMessage(SerializableModel message) Future<void>
Sends a message to the endpoint's stream.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited