mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-12 15:17:16 +03:00
25 lines
374 B
Go
25 lines
374 B
Go
package chat
|
|
|
|
import (
|
|
"github.com/shazow/ssh-chat/chat/message"
|
|
"github.com/shazow/ssh-chat/set"
|
|
)
|
|
|
|
// Member is a User with per-Room metadata attached to it.
|
|
type roomMember struct {
|
|
Member
|
|
Ignored *set.Set
|
|
}
|
|
|
|
type Member interface {
|
|
message.Author
|
|
|
|
Config() message.UserConfig
|
|
SetConfig(message.UserConfig)
|
|
|
|
Send(message.Message) error
|
|
|
|
SetID(string)
|
|
Close()
|
|
}
|