grpc/ttnctx/context.go
func LimitAndOffsetFromIncomingContext(ctx context.Context) (limit, offset uint64, err error) {
	md := MetadataFromIncomingContext(ctx)
	limit, err = LimitFromMetadata(md)
	if err != nil {
		return 0, 0, err
	}
	offset, err = OffsetFromMetadata(md)
	if err != nil {
		return 0, 0, err
	}
	return limit, offset, nil
}
func LimitAndOffsetFromIncomingContext(ctx context.Context) (limit, offset uint64, err error) {
	md := MetadataFromIncomingContext(ctx)
	limit, err = LimitFromMetadata(md)
	if err != nil {
		return 0, 0, err
	}
	offset, err = OffsetFromMetadata(md)
	if err != nil {
		return 0, 0, err
	}
	return limit, offset, nil
}
// LimitAndOffsetFromIncomingContext gets the limit and offset from the incoming context