Documentation ¶
Index ¶
- Variables
- type DMRServer
- type RedisClient
- func (s *RedisClient) DeleteRepeater(ctx context.Context, repeaterID uint) bool
- func (s *RedisClient) GetPeer(ctx context.Context, peerID uint) (models.Peer, error)
- func (s *RedisClient) GetRepeater(ctx context.Context, repeaterID uint) (models.Repeater, error)
- func (s *RedisClient) ListRepeaters(ctx context.Context) ([]uint, error)
- func (s *RedisClient) RepeaterExists(ctx context.Context, repeaterID uint) bool
- func (s *RedisClient) StoreRepeater(ctx context.Context, repeaterID uint, repeater models.Repeater)
- func (s *RedisClient) UpdateRepeaterConnection(ctx context.Context, repeaterID uint, connection string)
- func (s *RedisClient) UpdateRepeaterPing(ctx context.Context, repeaterID uint)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶ added in v1.0.38
type RedisClient struct {
Redis *redis.Client
}
func MakeRedisClient ¶ added in v1.0.38
func MakeRedisClient(redis *redis.Client) *RedisClient
func (*RedisClient) DeleteRepeater ¶ added in v1.0.38
func (s *RedisClient) DeleteRepeater(ctx context.Context, repeaterID uint) bool
func (*RedisClient) GetRepeater ¶ added in v1.0.38
func (*RedisClient) ListRepeaters ¶ added in v1.0.38
func (s *RedisClient) ListRepeaters(ctx context.Context) ([]uint, error)
func (*RedisClient) RepeaterExists ¶ added in v1.0.38
func (s *RedisClient) RepeaterExists(ctx context.Context, repeaterID uint) bool
func (*RedisClient) StoreRepeater ¶ added in v1.0.38
func (*RedisClient) UpdateRepeaterConnection ¶ added in v1.0.38
func (s *RedisClient) UpdateRepeaterConnection(ctx context.Context, repeaterID uint, connection string)
func (*RedisClient) UpdateRepeaterPing ¶ added in v1.0.38
func (s *RedisClient) UpdateRepeaterPing(ctx context.Context, repeaterID uint)
Click to show internal directories.
Click to hide internal directories.