Documentation ¶
Index ¶
- type Config
- type Gateway
- func (o *Gateway) Ban(uid string) error
- func (o *Gateway) Channel() *gateway.Channel
- func (o *Gateway) ChannelUsers() []gateway.User
- func (o *Gateway) Kick(uid string) error
- func (o *Gateway) Ping(uid string) (time.Duration, error)
- func (o *Gateway) Relay(ev *network.Event, from gateway.Gateway) error
- func (o *Gateway) Run(ctx context.Context) error
- func (o *Gateway) Say(s string) error
- func (o *Gateway) SayPrivate(uid string, s string) error
- func (o *Gateway) SetUserAccess(uid string, a gateway.AccessLevel) (*gateway.AccessLevel, error)
- func (o *Gateway) Unban(uid string) error
- func (o *Gateway) User(uid string) (*gateway.User, error)
- func (o *Gateway) Users() map[string]gateway.AccessLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct { gateway.Common network.EventEmitter *Config In io.ReadCloser Out *log.Logger }
Gateway relays between stdin/stdout
func (*Gateway) ChannelUsers ¶ added in v0.9.0
ChannelUsers online
func (*Gateway) SayPrivate ¶ added in v0.9.0
SayPrivate sends a private chat message to uid
func (*Gateway) SetUserAccess ¶ added in v0.9.0
func (o *Gateway) SetUserAccess(uid string, a gateway.AccessLevel) (*gateway.AccessLevel, error)
SetUserAccess overrides accesslevel for a specific user
Click to show internal directories.
Click to hide internal directories.