Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for orjson (0.15 sec)

  1. internal/logger/console.go

    	} else {
    		message = fmt.Sprint(args...)
    	}
    	logJSON, err := json.Marshal(&log.Entry{
    		Level:   ErrorKind,
    		Message: message,
    		Time:    time.Now().UTC(),
    		Trace:   &log.Trace{Message: message, Source: []string{getSource(6)}},
    	})
    	if err != nil {
    		panic(err)
    	}
    	fmt.Fprintln(Output, string(logJSON))
    }
    
    func (i errorMsg) quiet(msg string, args ...interface{}) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. internal/logger/target/console/console.go

    func (c *Target) Send(e interface{}) error {
    	entry, ok := e.(log.Entry)
    	if !ok {
    		return fmt.Errorf("Uexpected log entry structure %#v", e)
    	}
    	if logger.IsJSON() {
    		logJSON, err := json.Marshal(&entry)
    		if err != nil {
    			return err
    		}
    		fmt.Fprintln(c.output, string(logJSON))
    		return nil
    	}
    
    	if entry.Level == logger.EventKind {
    		fmt.Fprintln(c.output, entry.Message)
    		return nil
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    	Host          string                        `json:"host"`
    	Err           string                        `json:"err,omitempty"`
    	WaitingDrives map[string]madmin.DiskMetrics `json:"waitingDrives,omitempty"`
    }
    
    type serviceResult struct {
    	Action  madmin.ServiceAction `json:"action"`
    	DryRun  bool                 `json:"dryRun"`
    	Results []servicePeerResult  `json:"results,omitempty"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  4. cmd/batch-handlers.go

    type batchJobInfo struct {
    	mu sync.RWMutex `json:"-" msg:"-"`
    
    	Version       int       `json:"-" msg:"v"`
    	JobID         string    `json:"jobID" msg:"jid"`
    	JobType       string    `json:"jobType" msg:"jt"`
    	StartTime     time.Time `json:"startTime" msg:"st"`
    	LastUpdate    time.Time `json:"lastUpdate" msg:"lu"`
    	RetryAttempts int       `json:"retryAttempts" msg:"ra"`
    
    	Complete bool `json:"complete" msg:"cmp"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  5. cmd/metacache-set.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/gob"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/minio/minio/internal/bucket/lifecycle"
    	"github.com/minio/minio/internal/bucket/object/lock"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  6. go.sum

    github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
    github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
    github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
    github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
    github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 84.2K bytes
    - Viewed (0)
  7. internal/logger/logger.go

    	jsonFlag = true
    	quietFlag = true
    }
    
    // EnableAnonymous - turns anonymous flag
    // to avoid printing sensitive information.
    func EnableAnonymous() {
    	anonFlag = true
    }
    
    // IsJSON - returns true if jsonFlag is true
    func IsJSON() bool {
    	return jsonFlag
    }
    
    // IsQuiet - returns true if quietFlag is true
    func IsQuiet() bool {
    	return quietFlag
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users.go

    }
    
    const (
    	allPoliciesFile           = "policies.json"
    	allUsersFile              = "users.json"
    	allGroupsFile             = "groups.json"
    	allSvcAcctsFile           = "svcaccts.json"
    	userPolicyMappingsFile    = "user_mappings.json"
    	groupPolicyMappingsFile   = "group_mappings.json"
    	stsUserPolicyMappingsFile = "stsuser_mappings.json"
    
    	iamAssetsDir = "iam-assets"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  9. cmd/erasure-sets.go

    			// Reset for the next interval
    			timer.Reset(globalAPIConfig.getStaleUploadsCleanupInterval())
    		}
    	}
    }
    
    type auditObjectOp struct {
    	Name  string   `json:"name"`
    	Pool  int      `json:"poolId"`
    	Set   int      `json:"setId"`
    	Disks []string `json:"disks"`
    }
    
    // Add erasure set information to the current context
    func auditObjectErasureSet(ctx context.Context, object string, set *erasureObjects) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
  10. cmd/data-scanner.go

    		return madmin.HealDeepScan
    	}
    
    	return madmin.HealNormalScan
    }
    
    type backgroundHealInfo struct {
    	BitrotStartTime  time.Time           `json:"bitrotStartTime"`
    	BitrotStartCycle uint64              `json:"bitrotStartCycle"`
    	CurrentScanMode  madmin.HealScanMode `json:"currentScanMode"`
    }
    
    func readBackgroundHealInfo(ctx context.Context, objAPI ObjectLayer) backgroundHealInfo {
    	if globalIsErasureSD {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
Back to top