Documentation ¶
Index ¶
- Variables
- func StartClient(conn *websocket.Conn, addr net.Addr) (err error)
- type WhipClient
- func (c *WhipClient) Addr() net.Addr
- func (c *WhipClient) Close() error
- func (c *WhipClient) Data() map[string]interface{}
- func (c *WhipClient) GotICECandidate(init webrtc.ICECandidateInit) error
- func (c *WhipClient) GotOffer(ctx context.Context, offer []byte) ([]byte, error)
- func (c *WhipClient) Group() *group.Group
- func (c *WhipClient) Id() string
- func (c *WhipClient) Joined(group, kind string) error
- func (c *WhipClient) Kick(id string, user *string, message string) error
- func (c *WhipClient) NewConnection(ctx context.Context, offer []byte) ([]byte, error)
- func (c *WhipClient) Permissions() []string
- func (c *WhipClient) PushClient(group, kind, id, username string, permissions []string, ...) error
- func (c *WhipClient) PushConn(g *group.Group, id string, conn conn.Up, tracks []conn.UpTrack, replace string) error
- func (c *WhipClient) RequestConns(target group.Client, g *group.Group, id string) error
- func (c *WhipClient) SetPermissions(perms []string)
- func (c *WhipClient) SetUsername(username string)
- func (c *WhipClient) Token() string
- func (c *WhipClient) Username() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientDead = errors.New("client is dead")
View Source
var ErrRateLimited = errors.New("rate limited")
View Source
var ErrUnknownId = errors.New("unknown id")
View Source
var ErrUnknownTrack = errors.New("unknown track")
View Source
var ErrUnsupportedFeedback = errors.New("unsupported feedback type")
View Source
var ErrUserMismatch = errors.New("user id mismatch")
View Source
var ErrWriterBusy = errors.New("writer is busy")
View Source
var ErrWriterDead = errors.New("writer is dead")
Functions ¶
Types ¶
type WhipClient ¶
type WhipClient struct {
// contains filtered or unexported fields
}
func NewWhipClient ¶
func (*WhipClient) Addr ¶
func (c *WhipClient) Addr() net.Addr
func (*WhipClient) Close ¶
func (c *WhipClient) Close() error
func (*WhipClient) Data ¶
func (c *WhipClient) Data() map[string]interface{}
func (*WhipClient) GotICECandidate ¶
func (c *WhipClient) GotICECandidate(init webrtc.ICECandidateInit) error
func (*WhipClient) Group ¶
func (c *WhipClient) Group() *group.Group
func (*WhipClient) Id ¶
func (c *WhipClient) Id() string
func (*WhipClient) Joined ¶
func (c *WhipClient) Joined(group, kind string) error
func (*WhipClient) NewConnection ¶
func (*WhipClient) Permissions ¶
func (c *WhipClient) Permissions() []string
func (*WhipClient) PushClient ¶
func (c *WhipClient) PushClient(group, kind, id, username string, permissions []string, status map[string]interface{}) error
func (*WhipClient) RequestConns ¶
func (*WhipClient) SetPermissions ¶
func (c *WhipClient) SetPermissions(perms []string)
func (*WhipClient) SetUsername ¶
func (c *WhipClient) SetUsername(username string)
func (*WhipClient) Token ¶
func (c *WhipClient) Token() string
func (*WhipClient) Username ¶
func (c *WhipClient) Username() string
Click to show internal directories.
Click to hide internal directories.