Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement point codec #24

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

Chenxulin97
Copy link
Member

No description provided.

@Chenxulin97 Chenxulin97 force-pushed the write branch 2 times, most recently from 7bc5be5 to f0b7aa6 Compare December 4, 2023 07:53
Time time.Time
Tags map[string]string
Fields map[string]interface{}
//Timestamp precision ,default value is PrecisionNanoSecond
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//Timestamp precision ,default value is PrecisionNanoSecond
// Precision Timestamp precision ,default value is PrecisionNanoSecond

p.Precision = precision
}

func (p *Point) SetMeasurement(name string) {
p.Measurement = name
}

func (p *Point) String() string {
//return empty string if point hasn't set measurement or add field
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this comment

@hezhangjian hezhangjian merged commit 24ab006 into openGemini:main Dec 5, 2023
7 checks passed
@Chenxulin97 Chenxulin97 deleted the write branch December 5, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants