Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hey ¶
type Hey interface { // CreateChannel create new channel with root thread CreateChannel( ctx context.Context, userIDs []uuid.UUID, ) (uuid.UUID, uuid.UUID, error) CreateChannelName( ctx context.Context, name string, userIDs []uuid.UUID, ) (channelID uuid.UUID, rootThreadID uuid.UUID, err error) // CreateNodalEvent create new nodal event // waiting ChannelID from context CreateNodalEvent( ctx context.Context, threadID uuid.UUID, owners []uuid.UUID, creatorID uuid.UUID, ) (newThreadID uuid.UUID, newEventID uuid.UUID, err error) CreateNodalEventWithData( ctx context.Context, threadID uuid.UUID, owners []uuid.UUID, creatorID uuid.UUID, data []byte, ) (uuid.UUID, uuid.UUID, error) CreateNodalEventWithThreadName( ctx context.Context, threadName string, threadID uuid.UUID, owners []uuid.UUID, creatorID uuid.UUID, ) (uuid.UUID, uuid.UUID, error) CreateNodalEventWithThreadNameWithData( ctx context.Context, threadName string, threadID uuid.UUID, owners []uuid.UUID, creatorID uuid.UUID, data []byte, ) (uuid.UUID, uuid.UUID, error) // CreateNewBranchEvent create a new event in branch // if the event already has the branch - error CreateNewBranchEvent( ctx context.Context, threadID uuid.UUID, relatedEventID uuid.UUID, owners []uuid.UUID, creatorID uuid.UUID, data []byte, ) (newThreadID uuid.UUID, newEventID uuid.UUID, err error) CreateNewBranchEventWithThreadName( ctx context.Context, threadName string, threadID uuid.UUID, relatedEventID uuid.UUID, owners []uuid.UUID, creatorID uuid.UUID, data []byte, ) (uuid.UUID, uuid.UUID, error) // CreateEvent create event in existing thread CreateEvent(ctx context.Context, threadID uuid.UUID, creatorID uuid.UUID, data []byte, ) (eventID uuid.UUID, err error) FindThreadByName( ctx context.Context, channelID uuid.UUID, name string, ) (Thread, error) FindChannelByName( ctx context.Context, name string, ) (Channel, error) // FindEvents find events // waiting WatcherID (from a user view) from context FindEvents( ctx context.Context, watcherID uuid.UUID, threadID uuid.UUID, cursorStr string, perPage int, ) (SearchResult, error) FindEventsByName( ctx context.Context, watcherID uuid.UUID, specialName string, cursorStr string, perPage int, ) (SearchResult, error) }
Hey service
type SearchResult ¶
SearchResult search result events
Click to show internal directories.
Click to hide internal directories.