Sizer can return its size in bytes.
| 12 | |
| 13 | // Sizer can return its size in bytes. |
| 14 | type Sizer interface { |
| 15 | Size() int |
| 16 | } |
| 17 | |
| 18 | func AppendMessageSizeToOutgoingContext(ctx context.Context, req Sizer) context.Context { |
| 19 | return metadata.AppendToOutgoingContext(ctx, MetadataMessageSize, strconv.Itoa(req.Size())) |
no outgoing calls
no test coverage detected