Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinDuration

func MinDuration(candidates ...*durationpb.Duration) (exp time.Duration)

MinDuration selects the smallest duration that is > 0 from a set of durationpb.Duration protobufs.

If none of the supplied Durations are > 0, 0 will be returned.

Types

type ProjectBoundMessage

type ProjectBoundMessage interface {
	// GetMessageProject returns the Project to which this message is bound.
	GetMessageProject() string
}

ProjectBoundMessage describes an object that is bound to a Project namespace.

This is intended to be implemented by project-bound protobufs.

Directories

Path Synopsis