Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 201 for struct (0.25 sec)

  1. schema/relationship_test.go

    	})
    }
    
    func TestEmbeddedBelongsTo(t *testing.T) {
    	type Country struct {
    		ID   int `gorm:"primaryKey"`
    		Name string
    	}
    	type Address struct {
    		CountryID int
    		Country   Country
    	}
    	type NestedAddress struct {
    		Address
    	}
    	type CountryMixin struct {
    		CountryID int
    		Country   Country
    	}
    	type Org struct {
    		ID              int
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/api.go

    }
    
    type ApplicationTunnel struct {
    	Protocol string  `json:"protocol"`
    	Port     *uint16 `json:"port,omitempty"`
    }
    
    type Waypoint struct {
    	Destination string `json:"destination"`
    }
    
    type LoadBalancer struct {
    	Mode               string   `json:"mode"`
    	RoutingPreferences []string `json:"routingPreferences"`
    }
    
    type ZtunnelService struct {
    	Name         string         `json:"name"`
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 25 02:16:06 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. cmd/storage-datatypes.go

    type RenameDataResp struct {
    	Sign       []byte
    	OldDataDir string // contains '<uuid>', it is designed to be passed as value to Delete(bucket, pathJoin(object, dataDir))
    }
    
    // LocalDiskIDs - GetLocalIDs response.
    type LocalDiskIDs struct {
    	IDs []string
    }
    
    // ListDirResult - ListDir()'s response.
    type ListDirResult struct {
    	Entries []string `msg:"e"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/fakes_test.go

    	f.addedPods.Add(1)
    	return f.addError
    }
    
    func (f *fakeZtunnel) Close() error {
    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. cmd/object-api-errors.go

    type InvalidETag struct{}
    
    func (e InvalidETag) Error() string {
    	return "etag of the object has changed"
    }
    
    // BackendDown is returned for network errors
    type BackendDown struct {
    	Err string
    }
    
    func (e BackendDown) Error() string {
    	return e.Err
    }
    
    // NotImplemented If a feature is not implemented
    type NotImplemented struct {
    	Message string
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/data-usage-cache.go

    type dataUsageCacheV2 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV2
    }
    
    // dataUsageCacheV3 contains a cache of data usage entries version 3.
    type dataUsageCacheV3 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV3
    }
    
    // dataUsageCacheV4 contains a cache of data usage entries version 4.
    type dataUsageCacheV4 struct {
    	Info  dataUsageCacheInfo
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  7. cmd/bucket-lifecycle.go

    // by NewerNoncurrentVersions
    type newerNoncurrentTask struct {
    	bucket   string
    	versions []ObjectToDelete
    	event    lifecycle.Event
    }
    
    type transitionTask struct {
    	objInfo ObjectInfo
    	src     lcEventSrc
    	event   lifecycle.Event
    }
    
    type transitionState struct {
    	transitionCh chan transitionTask
    
    	ctx        context.Context
    	objAPI     ObjectLayer
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  8. istioctl/pkg/admin/istiodconfig.go

    		return err
    	}
    	return nil
    }
    
    type getAllLogLevelsState struct {
    	client       *ControlzClient
    	outputFormat string
    }
    
    func (ga *getAllLogLevelsState) run(out io.Writer) error {
    	type scopeLogLevel struct {
    		ScopeName   string `json:"scope_name"`
    		LogLevel    string `json:"log_level"`
    		Description string `json:"description"`
    	}
    	allScopes, err := ga.client.GetScopes()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver.go

    */
    
    type connMgr struct {
    	connectionSet map[*ZtunnelConnection]struct{}
    	latestConn    *ZtunnelConnection
    	mu            sync.Mutex
    }
    
    func (c *connMgr) addConn(conn *ZtunnelConnection) {
    	log.Debug("ztunnel connected")
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	c.connectionSet[conn] = struct{}{}
    	c.latestConn = conn
    	ztunnelConnected.RecordInt(int64(len(c.connectionSet)))
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  10. istioctl/pkg/util/configdump/wrapper.go

    		return msg.ProtoReflect().Type(), nil
    	}
    	return typ, nil
    }
    
    // Wrapper is a wrapper around the Envoy ConfigDump
    // It has extra helper functions for handling any/struct/marshal protobuf pain
    type Wrapper struct {
    	*admin.ConfigDump
    }
    
    // UnmarshalJSON is a custom unmarshaller to handle protobuf pain
    func (w *Wrapper) UnmarshalJSON(b []byte) error {
    	cd := &admin.ConfigDump{}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top