16 lines
350 B
Go
16 lines
350 B
Go
package adapter
|
|
|
|
import (
|
|
. "forge.lightcrystal.systems/lightcrystal/underbbs/models"
|
|
)
|
|
|
|
type Adapter interface {
|
|
Init(Settings, chan SocketData) error
|
|
Subscribe(string) []error
|
|
SendMessage(Message) error
|
|
Follow(Author) error
|
|
Unfollow(Author) error
|
|
GetFollowers() error
|
|
UpdateMetadata(interface{}) error
|
|
DefaultSubscriptionFilter() string
|
|
}
|