fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
252 stars 143 forks source link

Add support for context for diam.Message #131

Closed higebu closed 3 years ago

higebu commented 4 years ago

Context per diam.Message is useful for creating middlewares for go-diameter.

emakeev commented 4 years ago

Could you please explain what adding context to the message accomplishes? Maybe unit tests / examples.

higebu commented 4 years ago

@emakeev Thank you for your comment. I'll add unit test soon.

higebu commented 4 years ago

@emakeev I added unit tests and example.

emakeev commented 4 years ago

@higebu thank you for providing unit test & example. Could you please address one issue (please, see the inline comment)?