-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(i): Break up client/descriptions.go (#2412)
## Relevant issue(s) Resolves #2411 ## Description Breaks up client/descriptions.go into multiple files.
- Loading branch information
1 parent
c67bc56
commit c74a6f7
Showing
4 changed files
with
288 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2024 Democratized Data Foundation | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package client | ||
|
||
import "fmt" | ||
|
||
// FieldID is a unique identifier for a field in a schema. | ||
type FieldID uint32 | ||
|
||
// CollectionFieldDescription describes the local components of a field on a collection. | ||
type CollectionFieldDescription struct { | ||
// Name contains the name of the [SchemaFieldDescription] that this field uses. | ||
Name string | ||
|
||
// ID contains the local, internal ID of this field. | ||
ID FieldID | ||
} | ||
|
||
func (f FieldID) String() string { | ||
return fmt.Sprint(uint32(f)) | ||
} |
Oops, something went wrong.