github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/redis_supplier_groups.go (about)

     1  // Copyright (c) 2018-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package store
     5  
     6  import (
     7  	"context"
     8  
     9  	"github.com/mattermost/mattermost-server/model"
    10  )
    11  
    12  func (s *RedisSupplier) GroupCreate(ctx context.Context, group *model.Group, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    13  	// TODO: Redis caching.
    14  	return s.Next().GroupCreate(ctx, group, hints...)
    15  }
    16  
    17  func (s *RedisSupplier) GroupGet(ctx context.Context, groupID string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    18  	// TODO: Redis caching.
    19  	return s.Next().GroupGet(ctx, groupID, hints...)
    20  }
    21  
    22  func (s *RedisSupplier) GroupGetByRemoteID(ctx context.Context, remoteID string, groupSource model.GroupSource, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    23  	// TODO: Redis caching.
    24  	return s.Next().GroupGetByRemoteID(ctx, remoteID, groupSource, hints...)
    25  }
    26  
    27  func (s *RedisSupplier) GroupGetAllBySource(ctx context.Context, groupSource model.GroupSource, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    28  	// TODO: Redis caching.
    29  	return s.Next().GroupGetAllBySource(ctx, groupSource, hints...)
    30  }
    31  
    32  func (s *RedisSupplier) GroupUpdate(ctx context.Context, group *model.Group, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    33  	// TODO: Redis caching.
    34  	return s.Next().GroupUpdate(ctx, group, hints...)
    35  }
    36  
    37  func (s *RedisSupplier) GroupDelete(ctx context.Context, groupID string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    38  	// TODO: Redis caching.
    39  	return s.Next().GroupDelete(ctx, groupID, hints...)
    40  }
    41  
    42  func (s *RedisSupplier) GroupGetMemberUsers(ctx context.Context, groupID string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    43  	// TODO: Redis caching.
    44  	return s.Next().GroupGetMemberUsers(ctx, groupID, hints...)
    45  }
    46  
    47  func (s *RedisSupplier) GroupGetMemberUsersPage(ctx context.Context, groupID string, offset int, limit int, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    48  	// TODO: Redis caching.
    49  	return s.Next().GroupGetMemberUsersPage(ctx, groupID, offset, limit, hints...)
    50  }
    51  
    52  func (s *RedisSupplier) GroupGetMemberCount(ctx context.Context, groupID string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    53  	// TODO: Redis caching.
    54  	return s.Next().GroupGetMemberCount(ctx, groupID, hints...)
    55  }
    56  
    57  func (s *RedisSupplier) GroupCreateOrRestoreMember(ctx context.Context, groupID string, userID string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    58  	// TODO: Redis caching.
    59  	return s.Next().GroupCreateOrRestoreMember(ctx, groupID, userID, hints...)
    60  }
    61  
    62  func (s *RedisSupplier) GroupDeleteMember(ctx context.Context, groupID string, userID string, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    63  	// TODO: Redis caching.
    64  	return s.Next().GroupDeleteMember(ctx, groupID, userID, hints...)
    65  }
    66  
    67  func (s *RedisSupplier) GroupCreateGroupSyncable(ctx context.Context, groupSyncable *model.GroupSyncable, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    68  	// TODO: Redis caching.
    69  	return s.Next().GroupCreateGroupSyncable(ctx, groupSyncable, hints...)
    70  }
    71  
    72  func (s *RedisSupplier) GroupGetGroupSyncable(ctx context.Context, groupID string, syncableID string, syncableType model.GroupSyncableType, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    73  	// TODO: Redis caching.
    74  	return s.Next().GroupGetGroupSyncable(ctx, groupID, syncableID, syncableType, hints...)
    75  }
    76  
    77  func (s *RedisSupplier) GroupGetAllGroupSyncablesByGroup(ctx context.Context, groupID string, syncableType model.GroupSyncableType, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    78  	// TODO: Redis caching.
    79  	return s.Next().GroupGetAllGroupSyncablesByGroup(ctx, groupID, syncableType, hints...)
    80  }
    81  
    82  func (s *RedisSupplier) GroupUpdateGroupSyncable(ctx context.Context, groupSyncable *model.GroupSyncable, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    83  	// TODO: Redis caching.
    84  	return s.Next().GroupUpdateGroupSyncable(ctx, groupSyncable, hints...)
    85  }
    86  
    87  func (s *RedisSupplier) GroupDeleteGroupSyncable(ctx context.Context, groupID string, syncableID string, syncableType model.GroupSyncableType, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    88  	// TODO: Redis caching.
    89  	return s.Next().GroupDeleteGroupSyncable(ctx, groupID, syncableID, syncableType, hints...)
    90  }
    91  
    92  func (s *RedisSupplier) PendingAutoAddTeamMembers(ctx context.Context, minGroupMembersCreateAt int64, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    93  	// TODO: Redis caching.
    94  	return s.Next().PendingAutoAddTeamMembers(ctx, minGroupMembersCreateAt, hints...)
    95  }
    96  
    97  func (s *RedisSupplier) PendingAutoAddChannelMembers(ctx context.Context, minGroupMembersCreateAt int64, hints ...LayeredStoreHint) *LayeredStoreSupplierResult {
    98  	// TODO: Redis caching.
    99  	return s.Next().PendingAutoAddChannelMembers(ctx, minGroupMembersCreateAt, hints...)
   100  }