mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			301 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			301 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package cache
 | 
						|
 | 
						|
import "context"
 | 
						|
 | 
						|
type OnlineCache interface {
 | 
						|
	GetOnline(ctx context.Context, userID string) ([]int32, error)
 | 
						|
	SetUserOnline(ctx context.Context, userID string, online, offline []int32) error
 | 
						|
	GetAllOnlineUsers(ctx context.Context, cursor uint64) (map[string][]int32, uint64, error)
 | 
						|
}
 |