Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for messages (0.18 sec)

  1. cmd/bootstrap-messages.go

    	}
    	bs.mu.RUnlock()
    
    	return traceInfo
    }
    
    func (bs *bootstrapTracer) Publish(ctx context.Context, trace *pubsub.PubSub[madmin.TraceInfo, madmin.TraceType]) {
    	for _, bsEvent := range bs.Events() {
    		if bsEvent.Message != "" {
    			select {
    			case <-ctx.Done():
    			default:
    				trace.Publish(bsEvent)
    			}
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Aug 23 10:07:06 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cluster-audit.go

    		"Number of unsent messages in queue for target",
    		targetID)
    	auditTotalMessagesMD = NewCounterMD(auditTotalMessages,
    		"Total number of messages sent since start",
    		targetID)
    )
    
    // loadClusterAuditMetrics - `MetricsLoaderFn` for cluster audit
    // such as failed messages and total messages.
    func loadClusterAuditMetrics(_ context.Context, m MetricValues, c *metricsCache) error {
    	audit := logger.CurrentStats()
    	for id, st := range audit {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 09:18:02 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. internal/deadlineconn/deadlineconn_test.go

    			t.Errorf("failed to read from client. %v", terr)
    			return
    		}
    		received = string(b)
    		if received != "message two\n" {
    			t.Errorf(`server: expected: "message two\n", got: %v`, received)
    			return
    		}
    
    		// Send a response.
    		_, terr = io.WriteString(deadlineconn, "messages received\n")
    		if terr != nil {
    			t.Errorf("failed to write to client. %v", terr)
    			return
    		}
    	}()
    
    	c, err := net.Dial("tcp", serverAddr)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Nov 05 18:09:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  4. internal/logger/target/types/types.go

    )
    
    // TargetStats contains statistics for a target.
    type TargetStats struct {
    	// QueueLength is the queue length if any messages are queued.
    	QueueLength int
    
    	// TotalMessages is the total number of messages sent in the lifetime of the target
    	TotalMessages int64
    
    	// FailedMessages should log message count that failed to send.
    	FailedMessages int64
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Nov 10 18:20:21 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    						fmt.Fprintln(cmd.ErrOrStderr(), "\t", a)
    					}
    				}
    				fmt.Fprintln(cmd.ErrOrStderr())
    			}
    
    			// Get messages for output
    			outputMessages := result.Messages.SetDocRef("istioctl-analyze").FilterOutLowerThan(outputThreshold.Level)
    
    			// Print all the messages to stdout in the specified format
    			output, err := formatting.Print(outputMessages, msgOutputFormat, colorize)
    			if err != nil {
    				return err
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. istioctl/pkg/util/formatting/formatter_test.go

    	)
    
    	msgs := diag.Messages{firstMsg, secondMsg}
    	output, _ := Print(msgs, YAMLFormat, false)
    
    	expectedOutput := `- code: B1
      documentationUrl: ` + url.ConfigAnalysis + `/b1/
      level: Error
      message: 'Explosion accident: the bubble is too big'
      origin: SoapBubble
    - code: C1
      documentationUrl: ` + url.ConfigAnalysis + `/c1/
      level: Warning
      message: 'Collapse danger: the castle is too old'
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. istioctl/pkg/util/proto/messageslice.go

    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    func (pSlice MessageSlice) MarshalJSON() ([]byte, error) {
    	buffer := bytes.NewBufferString("[")
    	sliceLength := len(pSlice)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  8. internal/config/notify/help.go

    	formatComment     = `'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'`
    	queueDirComment   = `staging dir for undelivered messages e.g. '/home/events'`
    	queueLimitComment = `maximum limit for undelivered messages, defaults to '100000'`
    )
    
    // Help template inputs for all notification targets
    var (
    	HelpWebhook = config.HelpKVS{
    		config.HelpKV{
    			Key:         target.WebhookEndpoint,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 19 04:37:54 GMT 2024
    - 18.8K bytes
    - Viewed (0)
  9. internal/logger/target/http/http.go

    	}
    
    	return nil
    }
    
    // Cancel - cancels the target.
    // All queued messages are flushed and the function returns afterwards.
    // All messages sent to the target after this function has been called will be dropped.
    func (h *Target) Cancel() {
    	atomic.StoreInt32(&h.status, statusClosed)
    	h.storeCtxCancel()
    
    	// Wait for messages to be sent...
    	h.wg.Wait()
    
    	// Set logch to nil and close it.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. istioctl/pkg/util/formatting/formatter.go

    func printYAML(ms diag.Messages) (string, error) {
    	yamlOutput, err := yaml.Marshal(ms)
    	return string(yamlOutput), err
    }
    
    // Formatting options for Message
    var (
    	colorPrefixes = map[diag.Level]string{
    		diag.Info:    "",           // no special color for info messages
    		diag.Warning: "\033[33m",   // yellow
    		diag.Error:   "\033[1;31m", // bold red
    	}
    )
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top