Documentation ¶
Index ¶
- func BuildContext(ctx context.Context, ctxFns ...PartialContextFn) context.Context
- func GetRequestID(ctx context.Context) string
- type ContextKey
- type Operation
- type Operations
- func (ops *Operations) Add(op Operation)
- func (ops Operations) Contains(wanted Operation) (result bool)
- func (ops Operations) Empty() bool
- func (ops Operations) Equal(ops2 Operations) bool
- func (ops Operations) First() Operation
- func (ops Operations) Last() Operation
- func (ops Operations) String() string
- type PartialContextFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContext ¶
func BuildContext(ctx context.Context, ctxFns ...PartialContextFn) context.Context
func GetRequestID ¶
Types ¶
type ContextKey ¶
type ContextKey int
const ( OperationKey ContextKey = iota DefaultErrsKindKey DefaultErrsSeverityKey )
type Operations ¶
type Operations struct {
Stack []Operation
}
func GetContextOperations ¶
func GetContextOperations(ctx context.Context) Operations
func (*Operations) Add ¶
func (ops *Operations) Add(op Operation)
func (Operations) Contains ¶
func (ops Operations) Contains(wanted Operation) (result bool)
func (Operations) Empty ¶
func (ops Operations) Empty() bool
func (Operations) Equal ¶
func (ops Operations) Equal(ops2 Operations) bool
func (Operations) First ¶
func (ops Operations) First() Operation
func (Operations) Last ¶
func (ops Operations) Last() Operation
func (Operations) String ¶
func (ops Operations) String() string
type PartialContextFn ¶
func AddContextOperation ¶
func AddContextOperation(op Operation) PartialContextFn
func SetContextOperation ¶
func SetContextOperation(op Operation) PartialContextFn
Click to show internal directories.
Click to hide internal directories.