Documentation ¶
Index ¶
- type IPuppetAbstract
- type Option
- type OptionFn
- type Puppet
- func (p *Puppet) ContactPayload(contactID string) (*schemas.ContactPayload, error)
- func (p *Puppet) ContactPayloadDirty(contactID string)
- func (p *Puppet) ContactSearch(query interface{}, searchIDList []string) ([]string, error)
- func (p *Puppet) ContactValidate(contactID string) bool
- func (p *Puppet) FriendshipPayload(friendshipID string) (*schemas.FriendshipPayload, error)
- func (p *Puppet) FriendshipSearch(query *schemas.FriendshipSearchCondition) (string, error)
- func (p *Puppet) MessageForward(conversationID string, messageID string) (string, error)
- func (p *Puppet) MessageList() (ks []string)
- func (p *Puppet) MessagePayload(messageID string) (*schemas.MessagePayload, error)
- func (p *Puppet) MessageSearch(query *schemas.MessageQueryFilter) ([]string, error)
- func (p *Puppet) RoomInvitationPayload(roomInvitationID string) (*schemas.RoomInvitationPayload, error)
- func (p *Puppet) RoomMemberPayload(roomID, memberID string) (*schemas.RoomMemberPayload, error)
- func (p *Puppet) RoomMemberPayloadDirty(roomID string) error
- func (p *Puppet) RoomMemberSearch(roomID string, query interface{}) ([]string, error)
- func (p *Puppet) RoomPayload(roomID string) (payload *schemas.RoomPayload, err error)
- func (p *Puppet) RoomPayloadDirty(roomID string)
- func (p *Puppet) RoomSearch(query *schemas.RoomQueryFilter) ([]string, error)
- func (p *Puppet) RoomValidate(roomID string) bool
- func (p *Puppet) SelfID() string
- func (p *Puppet) SetFriendshipPayload(friendshipID string, newPayload *schemas.FriendshipPayload)
- func (p *Puppet) SetID(id string)
- func (p *Puppet) SetPuppetImplementation(i IPuppetAbstract)
- func (p *Puppet) SetRoomInvitationPayload(payload *schemas.RoomInvitationPayload)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPuppetAbstract ¶
type IPuppetAbstract interface { MessageSearch(query *schemas.MessageQueryFilter) ([]string, error) MessagePayload(messageID string) (payload *schemas.MessagePayload, err error) FriendshipPayload(friendshipID string) (*schemas.FriendshipPayload, error) SetFriendshipPayload(friendshipID string, newPayload *schemas.FriendshipPayload) RoomPayloadDirty(roomID string) RoomMemberPayloadDirty(roomID string) error RoomPayload(roomID string) (payload *schemas.RoomPayload, err error) ContactPayloadDirty(contactID string) ContactPayload(contactID string) (*schemas.ContactPayload, error) ContactSearch(query interface{}, searchIDList []string) ([]string, error) FriendshipSearch(query *schemas.FriendshipSearchCondition) (string, error) SelfID() string events.EventEmitter ContactValidate(contactID string) bool RoomValidate(roomID string) bool RoomMemberSearch(roomID string, query interface{}) ([]string, error) RoomMemberPayload(roomID, memberID string) (*schemas.RoomMemberPayload, error) MessageForward(conversationID string, messageID string) (string, error) RoomSearch(query *schemas.RoomQueryFilter) ([]string, error) RoomInvitationPayload(roomInvitationID string) (*schemas.RoomInvitationPayload, error) SetRoomInvitationPayload(payload *schemas.RoomInvitationPayload) // contains filtered or unexported methods }
IPuppetAbstract puppet abstract class interface
type Puppet ¶
type Puppet struct { Option // puppet implementation puppet_hostie or puppet_mock events.EventEmitter // contains filtered or unexported fields }
Puppet puppet abstract struct
func (*Puppet) ContactPayload ¶
func (p *Puppet) ContactPayload(contactID string) (*schemas.ContactPayload, error)
ContactPayload ...
func (*Puppet) ContactPayloadDirty ¶
ContactPayloadDirty ...
func (*Puppet) ContactSearch ¶
ContactSearch query params is string or *schemas.ContactQueryFilter
func (*Puppet) ContactValidate ¶
ContactValidate ...
func (*Puppet) FriendshipPayload ¶
func (p *Puppet) FriendshipPayload(friendshipID string) (*schemas.FriendshipPayload, error)
FriendshipPayload ...
func (*Puppet) FriendshipSearch ¶
func (p *Puppet) FriendshipSearch(query *schemas.FriendshipSearchCondition) (string, error)
FriendshipSearch ...
func (*Puppet) MessageForward ¶
MessageForward ...
func (*Puppet) MessagePayload ¶
func (p *Puppet) MessagePayload(messageID string) (*schemas.MessagePayload, error)
MessagePayload message payload todo:: no finish
func (*Puppet) MessageSearch ¶
func (p *Puppet) MessageSearch(query *schemas.MessageQueryFilter) ([]string, error)
MessageSearch search message
func (*Puppet) RoomInvitationPayload ¶
func (p *Puppet) RoomInvitationPayload(roomInvitationID string) (*schemas.RoomInvitationPayload, error)
RoomInvitationPayload ...
func (*Puppet) RoomMemberPayload ¶
func (p *Puppet) RoomMemberPayload(roomID, memberID string) (*schemas.RoomMemberPayload, error)
RoomMemberPayload ...
func (*Puppet) RoomMemberPayloadDirty ¶
RoomMemberPayloadDirty ...
func (*Puppet) RoomMemberSearch ¶
RoomMemberSearch ...
func (*Puppet) RoomPayload ¶
func (p *Puppet) RoomPayload(roomID string) (payload *schemas.RoomPayload, err error)
RoomPayload ...
func (*Puppet) RoomPayloadDirty ¶
RoomPayloadDirty ...
func (*Puppet) RoomSearch ¶
func (p *Puppet) RoomSearch(query *schemas.RoomQueryFilter) ([]string, error)
RoomSearch ...
func (*Puppet) SetFriendshipPayload ¶
func (p *Puppet) SetFriendshipPayload(friendshipID string, newPayload *schemas.FriendshipPayload)
SetFriendshipPayload ...
func (*Puppet) SetPuppetImplementation ¶
func (p *Puppet) SetPuppetImplementation(i IPuppetAbstract)
SetPuppetImplementation set puppet implementation
func (*Puppet) SetRoomInvitationPayload ¶
func (p *Puppet) SetRoomInvitationPayload(payload *schemas.RoomInvitationPayload)
SetRoomInvitationPayload ...
Click to show internal directories.
Click to hide internal directories.