Package-level declarations

Types

Link copied to clipboard
@MappedEntity
data class ChannelEntity(@Id val id: String, val sessionId: String)

Entity for channels

Link copied to clipboard
@MappedEntity
data class DirectEntity(@Id val id: String, val users: Set<String>, val sessionId: String)

Entity for directs

Link copied to clipboard
@MongoRepository
interface DirectEntityRepository : CrudRepository<DirectEntity, String>
Link copied to clipboard
@MappedEntity
data class ServerEntity(@Id val id: String, @NotEmpty val participants: List<String>, val channels: List<ChannelEntity> = emptyList())

Entity for servers

Link copied to clipboard
@MongoRepository
interface ServerEntityRepository : CrudRepository<ServerEntity, String>
Link copied to clipboard
@MappedEntity
data class SessionEntity(@Id val id: String, val allowedUsers: List<String>, val participants: List<String>)

Entity for sessions

Link copied to clipboard
@MongoRepository
interface SessionEntityRepository : CrudRepository<SessionEntity, String>