初始化仓库
This commit is contained in:
parent
f52771d85e
commit
2a84b883e9
@ -4,6 +4,8 @@ import lombok.Data;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ApiConfig {
|
public class ApiConfig {
|
||||||
private String apiDebug;
|
private Integer apiDebug;
|
||||||
private String secret;
|
private String secret;
|
||||||
|
private String defaultSnap;
|
||||||
|
private String snapRoot;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
package cn.skcks.docking.gb28181.media.dto.config;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonNaming;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
|
||||||
|
public class ClusterConfig {
|
||||||
|
private String originUrl;
|
||||||
|
|
||||||
|
private String retryCount;
|
||||||
|
private String timeoutSec;
|
||||||
|
}
|
@ -1,10 +1,15 @@
|
|||||||
package cn.skcks.docking.gb28181.media.dto.config;
|
package cn.skcks.docking.gb28181.media.dto.config;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonNaming;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
|
||||||
public class FFMpegConfig {
|
public class FFMpegConfig {
|
||||||
private String bin;
|
private String bin;
|
||||||
private String cmd;
|
private String cmd;
|
||||||
private String log;
|
private String log;
|
||||||
|
private Integer restartSec;
|
||||||
|
private String snap;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
package cn.skcks.docking.gb28181.media.dto.config;
|
package cn.skcks.docking.gb28181.media.dto.config;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAlias;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class GeneralConfig {
|
public class GeneralConfig {
|
||||||
|
@JsonAlias("check_nvidia_dev")
|
||||||
|
private Integer checkNvidiaDev;
|
||||||
private Integer enableVhost;
|
private Integer enableVhost;
|
||||||
private Integer flowThreshold;
|
private Integer flowThreshold;
|
||||||
private Integer maxStreamWaitMS;
|
private Integer maxStreamWaitMS;
|
||||||
|
@ -17,4 +17,7 @@ public class ServerConfig {
|
|||||||
|
|
||||||
@JsonUnwrapped(prefix = "hls.")
|
@JsonUnwrapped(prefix = "hls.")
|
||||||
private HlsConfig hls;
|
private HlsConfig hls;
|
||||||
|
|
||||||
|
@JsonUnwrapped(prefix = "cluster.")
|
||||||
|
private ClusterConfig cluster;
|
||||||
}
|
}
|
||||||
|
@ -29,10 +29,11 @@ public class MediaServiceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void context(){
|
void context(){
|
||||||
ResponseEntity<String> entity = zlMediaHttpService.getServerConfigResponseEntity(config.getSecret());
|
String secret = config.getSecret();
|
||||||
|
ResponseEntity<String> entity = zlMediaHttpService.getServerConfigResponseEntity(secret);
|
||||||
log.info("{}", entity.getBody());
|
log.info("{}", entity.getBody());
|
||||||
|
|
||||||
JsonResponse<List<ServerConfig>> test = zlMediaHttpService.getServerConfig(config.getSecret());
|
JsonResponse<List<ServerConfig>> test = zlMediaHttpService.getServerConfig(secret);
|
||||||
log.info("{}", test);
|
log.info("{}", test);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user