Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for UnmarshalJSON (0.19 sec)

  1. internal/event/name.go

    	*name = eventName
    	return nil
    }
    
    // MarshalJSON - encodes to JSON data.
    func (name Name) MarshalJSON() ([]byte, error) {
    	return json.Marshal(name.String())
    }
    
    // UnmarshalJSON - decodes JSON data.
    func (name *Name) UnmarshalJSON(data []byte) error {
    	var s string
    	if err := json.Unmarshal(data, &s); err != nil {
    		return err
    	}
    
    	eventName, err := ParseName(s)
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 17:45:03 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. internal/jwt/parser.go

    type StandardClaims struct {
    	AccessKey string `json:"accessKey,omitempty"`
    	jwtgo.StandardClaims
    }
    
    // UnmarshalJSON provides custom JSON unmarshal.
    // This is mainly implemented for speed.
    func (c *StandardClaims) UnmarshalJSON(b []byte) (err error) {
    	return jsonparser.ObjectEach(b, func(key []byte, value []byte, dataType jsonparser.ValueType, _ int) error {
    		if len(key) == 0 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  3. internal/config/api/api.go

    	SyncEvents                  bool          `json:"sync_events"`
    	ObjectMaxVersions           int64         `json:"object_max_versions"`
    }
    
    // UnmarshalJSON - Validate SS and RRS parity when unmarshalling JSON.
    func (sCfg *Config) UnmarshalJSON(data []byte) error {
    	type Alias Config
    	aux := &struct {
    		*Alias
    	}{
    		Alias: (*Alias)(sCfg),
    	}
    	return json.Unmarshal(data, &aux)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  4. internal/config/storageclass/storage-class.go

    	RRS         StorageClass `json:"rrs"`
    	Optimize    string       `json:"optimize"`
    	inlineBlock int64
    
    	initialized bool
    }
    
    // UnmarshalJSON - Validate SS and RRS parity when unmarshalling JSON.
    func (sCfg *Config) UnmarshalJSON(data []byte) error {
    	type Alias Config
    	aux := &struct {
    		*Alias
    	}{
    		Alias: (*Alias)(sCfg),
    	}
    	return json.Unmarshal(data, &aux)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe_test.go

    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			ic := util.ReadFile(t, test.inputConfig)
    			cd := configdump.Wrapper{}
    			err := cd.UnmarshalJSON(ic)
    			if err != nil {
    				t.Fatal(err)
    			}
    			out, err := getIstioVirtualServicePathForSvcFromRoute(&cd, test.inputService, test.inputPort)
    			if err != nil {
    				t.Fatal(err)
    			}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  6. api/go1.21.txt

    pkg log/slog, method (Level) MarshalJSON() ([]uint8, error) #56345
    pkg log/slog, method (Level) MarshalText() ([]uint8, error) #56345
    pkg log/slog, method (Level) String() string #56345
    pkg log/slog, method (*Level) UnmarshalJSON([]uint8) error #56345
    pkg log/slog, method (*Level) UnmarshalText([]uint8) error #56345
    pkg log/slog, method (*LevelVar) Level() Level #56345
    pkg log/slog, method (*LevelVar) MarshalText() ([]uint8, error) #56345
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
Back to top