File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,15 @@ const (
2929	Random  SimSelectionMode  =  "Random" 
3030)
3131
32+ type  MessagesProcessingOrder  string 
33+ 
34+ const  (
35+ 	// LIFO is the last-in-first-out order. Newer messages are processed first. 
36+ 	LIFO  MessagesProcessingOrder  =  "LIFO" 
37+ 	// FIFO is the first-in-first-out order. Newer messages are processed last. 
38+ 	FIFO  MessagesProcessingOrder  =  "FIFO" 
39+ )
40+ 
3241// DeviceSettings represents the overall configuration settings for a device. 
3342type  DeviceSettings  struct  {
3443	// Encryption contains settings related to message encryption. 
@@ -85,6 +94,10 @@ type SettingsMessages struct {
8594	// LogLifetimeDays is the number of days to retain message logs. 
8695	// Must be at least 1 when provided. 
8796	LogLifetimeDays  * int  `json:"log_lifetime_days,omitempty" validate:"omitempty,min=1"` 
97+ 
98+ 	// MessagesProcessingOrder defines the order in which messages are processed. 
99+ 	// Valid values are "LIFO" or "FIFO". 
100+ 	ProcessingOrder  * MessagesProcessingOrder  `json:"processing_order,omitempty" validate:"omitempty,oneof=LIFO FIFO"` 
88101}
89102
90103func  (s  SettingsMessages ) Validate () error  {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments