Documentation ¶
Index ¶
- func GetFriendsFromDatabase(ctx *core.Context, user *models.User) ([]*proto.User, error)
- func GetTheaterMembers(ctx *core.Context, theater *models.Theater) ([]*proto.User, error)
- func GetValidationErrorsFromGoValidator(errs url.Values) map[string]interface{}
- func NewMediaSourceProto(ms *models.MediaSource) *proto.MediaSource
- func NewMemberProto(ctx *core.Context, member *models.TheaterMember) (*proto.User, error)
- func NewNotificationProto(db *mongo.Database, notif *models.Notification) (*proto.Notification, error)
- func NewProtoConnection(conn *models.Connection) *proto.Connection
- func NewProtoFriend(friend *models.Friend) (*proto.Friend, error)
- func NewProtoMessage(db *mongo.Database, ctx context.Context, message *models.Message) (*proto.Message, error)
- func NewProtoUser(user *models.User) *proto.User
- func NewProtoUserWithState(user *models.User) *proto.User
- func NewSubtitleProto(subtitle *models.Subtitle) (*proto.Subtitle, error)
- func NewTheaterProto(db *mongo.Database, ctx context.Context, theater *models.Theater) (*proto.Theater, error)
- func SendEventToFriends(ctx *core.Context, event []byte, user *models.User) error
- func SendEventToTheaterMembers(ctx *core.Context, event []byte, theater *models.Theater) (err error)
- func SendEventToUser(ctx *core.Context, event []byte, user *proto.User) (err error)
- func SendEventToUsers(ctx *core.Context, event []byte, users []*proto.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFriendsFromDatabase ¶
func GetTheaterMembers ¶
func NewMediaSourceProto ¶
func NewMediaSourceProto(ms *models.MediaSource) *proto.MediaSource
func NewMemberProto ¶
func NewNotificationProto ¶
func NewNotificationProto(db *mongo.Database, notif *models.Notification) (*proto.Notification, error)
func NewProtoConnection ¶
func NewProtoConnection(conn *models.Connection) *proto.Connection
func NewProtoMessage ¶
func NewTheaterProto ¶
func SendEventToFriends ¶
update friends with new event of user
func SendEventToUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.