mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +03:00
49 lines
1.5 KiB
Objective-C
49 lines
1.5 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import "MSChannelProtocol.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol MSIngestionProtocol;
|
|
@protocol MSChannelUnitProtocol;
|
|
@class MSChannelUnitConfiguration;
|
|
|
|
/**
|
|
* `MSChannelGroupProtocol` represents a kind of channel that contains
|
|
* constituent MSChannelUnit objects. When an operation from the `MSChannelProtocol`
|
|
* is performed on the group, that operation should be propagated to its
|
|
* constituent MSChannelUnit objects.
|
|
*/
|
|
@protocol MSChannelGroupProtocol <MSChannelProtocol>
|
|
|
|
/**
|
|
* Initialize a channel unit with the given configuration.
|
|
*
|
|
* @param configuration channel configuration.
|
|
*
|
|
* @return The added `MSChannelUnitProtocol`. Use this object to enqueue logs.
|
|
*/
|
|
- (id<MSChannelUnitProtocol>)addChannelUnitWithConfiguration:(MSChannelUnitConfiguration *)configuration;
|
|
|
|
/**
|
|
* Initialize a channel unit with the given configuration.
|
|
*
|
|
* @param configuration channel configuration.
|
|
* @param ingestion The alternative ingestion object
|
|
*
|
|
* @return The added `MSChannelUnitProtocol`. Use this object to enqueue logs.
|
|
*/
|
|
- (id<MSChannelUnitProtocol>)addChannelUnitWithConfiguration:(MSChannelUnitConfiguration *)configuration
|
|
withIngestion:(nullable id<MSIngestionProtocol>)ingestion;
|
|
|
|
/**
|
|
* Change the base URL (schema + authority + port only) used to communicate with the backend.
|
|
*
|
|
* @param logUrl base URL to use for backend communication.
|
|
*/
|
|
- (void)setLogUrl:(NSString *)logUrl;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|