examplepb

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_notifications_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Notifications

type Notifications struct {

	// Enable email notifications globally or per-user.
	EmailEnabled bool `protobuf:"varint,1,opt,name=email_enabled,json=emailEnabled,proto3" json:"email_enabled,omitempty"`
	// How often to send digest emails.
	DigestFrequency string `protobuf:"bytes,2,opt,name=digest_frequency,json=digestFrequency,proto3" json:"digest_frequency,omitempty"`
	// Maximum retry attempts for notification delivery.
	MaxRetries int64 `protobuf:"varint,3,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
	// Minimum score threshold for triggering notifications.
	ScoreThreshold float64 `protobuf:"fixed64,4,opt,name=score_threshold,json=scoreThreshold,proto3" json:"score_threshold,omitempty"`
	// contains filtered or unexported fields
}

Notifications demonstrates how to define a feature with multiple flags. Each field annotated with (pbflags.flag) becomes a runtime-configurable flag.

func (*Notifications) Descriptor deprecated

func (*Notifications) Descriptor() ([]byte, []int)

Deprecated: Use Notifications.ProtoReflect.Descriptor instead.

func (*Notifications) GetDigestFrequency

func (x *Notifications) GetDigestFrequency() string

func (*Notifications) GetEmailEnabled

func (x *Notifications) GetEmailEnabled() bool

func (*Notifications) GetMaxRetries

func (x *Notifications) GetMaxRetries() int64

func (*Notifications) GetScoreThreshold

func (x *Notifications) GetScoreThreshold() float64

func (*Notifications) ProtoMessage

func (*Notifications) ProtoMessage()

func (*Notifications) ProtoReflect

func (x *Notifications) ProtoReflect() protoreflect.Message

func (*Notifications) Reset

func (x *Notifications) Reset()

func (*Notifications) String

func (x *Notifications) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL