Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AssignMigrateTarget (0.1 sec)

  1. internal/logger/targets.go

    		if !ok {
    			continue
    		}
    		var newTgt *http.Target
    
    		for ii := range tgts {
    			if currentTgt.Name() == tgts[ii].Name() {
    				newTgt = tgts[ii]
    				currentTgt.AssignMigrateTarget(newTgt)
    				http.CreateOrAdjustGlobalBuffer(currentTgt, newTgt)
    				break
    			}
    		}
    	}
    
    	for _, t := range tgts {
    		err := t.Init(ctx)
    		if err != nil {
    			errs = append(errs, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. internal/logger/target/http/http.go

    		TotalMessages:  h.totalMessages.Load(),
    		FailedMessages: h.failedMessages.Load(),
    		QueueLength:    queueLength,
    	}
    
    	return stats
    }
    
    // AssignMigrateTarget assigns a target
    // which will eventually replace the current target.
    func (h *Target) AssignMigrateTarget(migrateTgt *Target) {
    	h.migrateTarget = migrateTgt
    }
    
    // Init validate and initialize the http target
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top