Skip to content

REORG/MEDIUM: service: port is optional via nil value#121

Closed
prometherion wants to merge 1 commit intohaproxytech:masterfrom
prometherion:dataplaneapi/issues/369
Closed

REORG/MEDIUM: service: port is optional via nil value#121
prometherion wants to merge 1 commit intohaproxytech:masterfrom
prometherion:dataplaneapi/issues/369

Conversation

@prometherion
Copy link
Copy Markdown
Member

Port can be optional via pointer (/cc haproxytech/dataplaneapi#369)

Comment thread configuration/service.go
type ServiceServer struct {
Address string
Port int
Port *int64
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why Int64 ? TCP ports are just 16 bits.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Simplifying types equality and assignment with other struct types.

@prometherion prometherion deleted the dataplaneapi/issues/369 branch May 15, 2025 10:54
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